/home/desid573/public_html/magicride.ng/wp-includes
NameSizeModeActions
blocks/-0755rm
certificates/-0755rm
css/-0755rm
customize/-0755rm
fonts/-0755rm
ID3/-0755rm
images/-0755rm
IXR/-0755rm
js/-0755rm
pomo/-0755rm
random_compat/-0755rm
Requests/-0755rm
rest-api/-0755rm
SimplePie/-0755rm
sodium_compat/-0755rm
Text/-0755rm
theme-compat/-0755rm
widgets/-0755rm
admin-bar.php304350644editdlrm
atomlib.php118390644editdlrm
author-template.php166500644editdlrm
blocks.php182410644editdlrm
bookmark-template.php119180644editdlrm
bookmark.php139010644editdlrm
cache.php218740644editdlrm
canonical.php284870644editdlrm
capabilities.php317210644editdlrm
category-template.php520310644editdlrm
category.php122270644editdlrm
class-feed.php5230644editdlrm
class-http.php371410644editdlrm
class-IXR.php25730644editdlrm
class-json.php404760644editdlrm
class-oembed.php314820644editdlrm
class-phpass.php73170644editdlrm
class-phpmailer.php1482440644editdlrm
class-pop3.php209190644editdlrm
class-requests.php297900644editdlrm
class-simplepie.php892640644editdlrm
class-smtp.php394760644editdlrm
class-snoopy.php377850644editdlrm
class-walker-category-dropdown.php21270644editdlrm
class-walker-category.php77510644editdlrm
class-walker-comment.php136540644editdlrm
class-walker-nav-menu.php86420644editdlrm
class-walker-page-dropdown.php22980644editdlrm
class-walker-page.php69930644editdlrm
class-wp-admin-bar.php169200644editdlrm
class-wp-ajax-response.php51270644editdlrm
class-wp-block-parser.php152150644editdlrm
class-wp-block-type-registry.php50890644editdlrm
class-wp-block-type.php48150644editdlrm
class-wp-comment-query.php432230644editdlrm
class-wp-comment.php89610644editdlrm
class-wp-customize-control.php250530644editdlrm
class-wp-customize-manager.php2018560644editdlrm
class-wp-customize-nav-menus.php543540644editdlrm
class-wp-customize-panel.php96470644editdlrm
class-wp-customize-section.php102290644editdlrm
class-wp-customize-setting.php282430644editdlrm
class-wp-customize-widgets.php662960644editdlrm
class-wp-dependency.php23350644editdlrm
class-wp-editor.php678720644editdlrm
class-wp-embed.php147320644editdlrm
class-wp-error.php49230644editdlrm
class-wp-fatal-error-handler.php64620644editdlrm
class-wp-feed-cache-transient.php25600644editdlrm
class-wp-feed-cache.php7490644editdlrm
class-wp-hook.php141050644editdlrm
class-wp-http-cookie.php68470644editdlrm
class-wp-http-curl.php119280644editdlrm
class-wp-http-encoding.php65030644editdlrm
class-wp-http-ixr-client.php33260644editdlrm
class-wp-http-proxy.php60610644editdlrm
class-wp-http-requests-hooks.php18760644editdlrm
class-wp-http-requests-response.php43980644editdlrm
class-wp-http-response.php28710644editdlrm
class-wp-http-streams.php153850644editdlrm
class-wp-image-editor-gd.php130610644editdlrm
class-wp-image-editor-imagick.php217800644editdlrm
class-wp-image-editor.php117610644editdlrm
class-wp-list-util.php63960644editdlrm
class-wp-locale-switcher.php50260644editdlrm
class-wp-locale.php146290644editdlrm
class-wp-matchesmapregex.php18040644editdlrm
class-wp-meta-query.php234360644editdlrm
class-wp-metadata-lazyloader.php53840644editdlrm
class-wp-network-query.php178350644editdlrm
class-wp-network.php122170644editdlrm
class-wp-oembed-controller.php60240644editdlrm
class-wp-paused-extensions-storage.php49330644editdlrm
class-wp-post-type.php182360644editdlrm
class-wp-post.php64410644editdlrm
class-wp-query.php1308180644editdlrm
class-wp-recovery-mode-cookie-service.php62470644editdlrm
class-wp-recovery-mode-email-service.php79960644editdlrm
class-wp-recovery-mode-key-service.php42840644editdlrm
class-wp-recovery-mode-link-service.php33700644editdlrm
class-wp-recovery-mode.php112540644editdlrm
class-wp-rewrite.php598210644editdlrm
class-wp-role.php26610644editdlrm
class-wp-roles.php83280644editdlrm
class-wp-session-tokens.php74300644editdlrm
class-wp-simplepie-file.php23260644editdlrm
class-wp-simplepie-sanitize-kses.php17750644editdlrm
class-wp-site-query.php280380644editdlrm
class-wp-site.php73060644editdlrm
class-wp-tax-query.php194330644editdlrm
class-wp-taxonomy.php106610644editdlrm
class-wp-term-query.php346560644editdlrm
class-wp-term.php52650644editdlrm
class-wp-text-diff-renderer-inline.php7160644editdlrm
class-wp-text-diff-renderer-table.php164480644editdlrm
class-wp-theme.php503860644editdlrm
class-wp-user-meta-session-tokens.php29900644editdlrm
class-wp-user-query.php312240644editdlrm
class-wp-user.php214140644editdlrm
class-wp-walker.php126870644editdlrm
class-wp-widget-factory.php37810644editdlrm
class-wp-widget.php178340644editdlrm
class-wp-xmlrpc-server.php2078490644editdlrm
class-wp.php247540644editdlrm
class.wp-dependencies.php115120644editdlrm
class.wp-scripts.php171910644editdlrm
class.wp-styles.php98420644editdlrm
comment-template.php898690644editdlrm
comment.php1153730644editdlrm
compat.php177530644editdlrm
cron.php324600644editdlrm
date.php356180644editdlrm
default-constants.php101260644editdlrm
default-filters.php257270644editdlrm
default-widgets.php21800644editdlrm
deprecated.php1142700644editdlrm
embed-template.php3440644editdlrm
embed.php471220644editdlrm
error-protection.php33860644editdlrm
error_log5654880644editdlrm
feed-atom-comments.php53780644editdlrm
feed-atom.php30810644editdlrm
feed-rdf.php26600644editdlrm
feed-rss.php11900644editdlrm
feed-rss2-comments.php41220644editdlrm
feed-rss2.php37820644editdlrm
feed.php213800644editdlrm
formatting.php2956780644editdlrm
functions.php2199590644editdlrm
functions.wp-scripts.php128300644editdlrm
functions.wp-styles.php82190644editdlrm
general-template.php1466320644editdlrm
http.php224240644editdlrm
kses.php572330644editdlrm
l10n.php519250644editdlrm
link-template.php1384820644editdlrm
load.php431460644editdlrm
locale.php1410644editdlrm
media-template.php489220644editdlrm
media.php1447630644editdlrm
meta.php465510644editdlrm
ms-blogs.php231220644editdlrm
ms-default-constants.php47850644editdlrm
ms-default-filters.php64140644editdlrm
ms-deprecated.php199070644editdlrm
ms-files.php26490644editdlrm
ms-functions.php870590644editdlrm
ms-load.php195570644editdlrm
ms-network.php36580644editdlrm
ms-settings.php41340644editdlrm
ms-site.php430640644editdlrm
nav-menu-template.php220080644editdlrm
nav-menu.php406720644editdlrm
option.php695550644editdlrm
pluggable-deprecated.php62620644editdlrm
pluggable.php986300644editdlrm
plugin.php320680644editdlrm
post-formats.php70240644editdlrm
post-template.php617640644editdlrm
post-thumbnail-template.php89570644editdlrm
post.php2353640644editdlrm
query.php329930644editdlrm
registration-functions.php1800644editdlrm
registration.php1800644editdlrm
rest-api.php420530644editdlrm
revision.php215860644editdlrm
rewrite.php177230644editdlrm
rss-functions.php1930644editdlrm
rss.php232080644editdlrm
script-loader.php1096050644editdlrm
session.php2430644editdlrm
shortcodes.php216980644editdlrm
spl-autoload-compat.php25740644editdlrm
taxonomy.php1566550644editdlrm
template-loader.php26950644editdlrm
template.php208280644editdlrm
theme.php1023010644editdlrm
update.php253820644editdlrm
user.php1240860644editdlrm
vars.php57150644editdlrm
version.php7620644editdlrm
widgets.php572000644editdlrm
wlwmanifest.xml10450644editdlrm
wp-db.php1016200644editdlrm
wp-diff.php6620644editdlrm
Edit: /home/desid573/public_html/magicride.ng/wp-includes/class-wp-hook.php (14105B)
callbacks[ $priority ] ); $this->callbacks[ $priority ][ $idx ] = array( 'function' => $function_to_add, 'accepted_args' => $accepted_args, ); // if we're adding a new priority to the list, put them back in sorted order if ( ! $priority_existed && count( $this->callbacks ) > 1 ) { ksort( $this->callbacks, SORT_NUMERIC ); } if ( $this->nesting_level > 0 ) { $this->resort_active_iterations( $priority, $priority_existed ); } } /** * Handles reseting callback priority keys mid-iteration. * * @since 4.7.0 * * @param bool|int $new_priority Optional. The priority of the new filter being added. Default false, * for no priority being added. * @param bool $priority_existed Optional. Flag for whether the priority already existed before the new * filter was added. Default false. */ private function resort_active_iterations( $new_priority = false, $priority_existed = false ) { $new_priorities = array_keys( $this->callbacks ); // If there are no remaining hooks, clear out all running iterations. if ( ! $new_priorities ) { foreach ( $this->iterations as $index => $iteration ) { $this->iterations[ $index ] = $new_priorities; } return; } $min = min( $new_priorities ); foreach ( $this->iterations as $index => &$iteration ) { $current = current( $iteration ); // If we're already at the end of this iteration, just leave the array pointer where it is. if ( false === $current ) { continue; } $iteration = $new_priorities; if ( $current < $min ) { array_unshift( $iteration, $current ); continue; } while ( current( $iteration ) < $current ) { if ( false === next( $iteration ) ) { break; } } // If we have a new priority that didn't exist, but ::apply_filters() or ::do_action() thinks it's the current priority... if ( $new_priority === $this->current_priority[ $index ] && ! $priority_existed ) { /* * ... and the new priority is the same as what $this->iterations thinks is the previous * priority, we need to move back to it. */ if ( false === current( $iteration ) ) { // If we've already moved off the end of the array, go back to the last element. $prev = end( $iteration ); } else { // Otherwise, just go back to the previous element. $prev = prev( $iteration ); } if ( false === $prev ) { // Start of the array. Reset, and go about our day. reset( $iteration ); } elseif ( $new_priority !== $prev ) { // Previous wasn't the same. Move forward again. next( $iteration ); } } } unset( $iteration ); } /** * Unhooks a function or method from a specific filter action. * * @since 4.7.0 * * @param string $tag The filter hook to which the function to be removed is hooked. Used * for building the callback ID when SPL is not available. * @param callable $function_to_remove The callback to be removed from running when the filter is applied. * @param int $priority The exact priority used when adding the original filter callback. * @return bool Whether the callback existed before it was removed. */ public function remove_filter( $tag, $function_to_remove, $priority ) { $function_key = _wp_filter_build_unique_id( $tag, $function_to_remove, $priority ); $exists = isset( $this->callbacks[ $priority ][ $function_key ] ); if ( $exists ) { unset( $this->callbacks[ $priority ][ $function_key ] ); if ( ! $this->callbacks[ $priority ] ) { unset( $this->callbacks[ $priority ] ); if ( $this->nesting_level > 0 ) { $this->resort_active_iterations(); } } } return $exists; } /** * Checks if a specific action has been registered for this hook. * * @since 4.7.0 * * @param string $tag Optional. The name of the filter hook. Used for building * the callback ID when SPL is not available. Default empty. * @param callable|bool $function_to_check Optional. The callback to check for. Default false. * @return bool|int The priority of that hook is returned, or false if the function is not attached. */ public function has_filter( $tag = '', $function_to_check = false ) { if ( false === $function_to_check ) { return $this->has_filters(); } $function_key = _wp_filter_build_unique_id( $tag, $function_to_check, false ); if ( ! $function_key ) { return false; } foreach ( $this->callbacks as $priority => $callbacks ) { if ( isset( $callbacks[ $function_key ] ) ) { return $priority; } } return false; } /** * Checks if any callbacks have been registered for this hook. * * @since 4.7.0 * * @return bool True if callbacks have been registered for the current hook, otherwise false. */ public function has_filters() { foreach ( $this->callbacks as $callbacks ) { if ( $callbacks ) { return true; } } return false; } /** * Removes all callbacks from the current filter. * * @since 4.7.0 * * @param int|bool $priority Optional. The priority number to remove. Default false. */ public function remove_all_filters( $priority = false ) { if ( ! $this->callbacks ) { return; } if ( false === $priority ) { $this->callbacks = array(); } elseif ( isset( $this->callbacks[ $priority ] ) ) { unset( $this->callbacks[ $priority ] ); } if ( $this->nesting_level > 0 ) { $this->resort_active_iterations(); } } /** * Calls the callback functions added to a filter hook. * * @since 4.7.0 * * @param mixed $value The value to filter. * @param array $args Arguments to pass to callbacks. * @return mixed The filtered value after all hooked functions are applied to it. */ public function apply_filters( $value, $args ) { if ( ! $this->callbacks ) { return $value; } $nesting_level = $this->nesting_level++; $this->iterations[ $nesting_level ] = array_keys( $this->callbacks ); $num_args = count( $args ); do { $this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] ); foreach ( $this->callbacks[ $priority ] as $the_ ) { if ( ! $this->doing_action ) { $args[0] = $value; } // Avoid the array_slice if possible. if ( $the_['accepted_args'] == 0 ) { $value = call_user_func_array( $the_['function'], array() ); } elseif ( $the_['accepted_args'] >= $num_args ) { $value = call_user_func_array( $the_['function'], $args ); } else { $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) ); } } } while ( false !== next( $this->iterations[ $nesting_level ] ) ); unset( $this->iterations[ $nesting_level ] ); unset( $this->current_priority[ $nesting_level ] ); $this->nesting_level--; return $value; } /** * Executes the callback functions hooked on a specific action hook. * * @since 4.7.0 * * @param mixed $args Arguments to pass to the hook callbacks. */ public function do_action( $args ) { $this->doing_action = true; $this->apply_filters( '', $args ); // If there are recursive calls to the current action, we haven't finished it until we get to the last one. if ( ! $this->nesting_level ) { $this->doing_action = false; } } /** * Processes the functions hooked into the 'all' hook. * * @since 4.7.0 * * @param array $args Arguments to pass to the hook callbacks. Passed by reference. */ public function do_all_hook( &$args ) { $nesting_level = $this->nesting_level++; $this->iterations[ $nesting_level ] = array_keys( $this->callbacks ); do { $priority = current( $this->iterations[ $nesting_level ] ); foreach ( $this->callbacks[ $priority ] as $the_ ) { call_user_func_array( $the_['function'], $args ); } } while ( false !== next( $this->iterations[ $nesting_level ] ) ); unset( $this->iterations[ $nesting_level ] ); $this->nesting_level--; } /** * Return the current priority level of the currently running iteration of the hook. * * @since 4.7.0 * * @return int|false If the hook is running, return the current priority level. If it isn't running, return false. */ public function current_priority() { if ( false === current( $this->iterations ) ) { return false; } return current( current( $this->iterations ) ); } /** * Normalizes filters set up before WordPress has initialized to WP_Hook objects. * * @since 4.7.0 * * @param array $filters Filters to normalize. * @return WP_Hook[] Array of normalized filters. */ public static function build_preinitialized_hooks( $filters ) { /** @var WP_Hook[] $normalized */ $normalized = array(); foreach ( $filters as $tag => $callback_groups ) { if ( is_object( $callback_groups ) && $callback_groups instanceof WP_Hook ) { $normalized[ $tag ] = $callback_groups; continue; } $hook = new WP_Hook(); // Loop through callback groups. foreach ( $callback_groups as $priority => $callbacks ) { // Loop through callbacks. foreach ( $callbacks as $cb ) { $hook->add_filter( $tag, $cb['function'], $priority, $cb['accepted_args'] ); } } $normalized[ $tag ] = $hook; } return $normalized; } /** * Determines whether an offset value exists. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/arrayaccess.offsetexists.php * * @param mixed $offset An offset to check for. * @return bool True if the offset exists, false otherwise. */ public function offsetExists( $offset ) { return isset( $this->callbacks[ $offset ] ); } /** * Retrieves a value at a specified offset. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/arrayaccess.offsetget.php * * @param mixed $offset The offset to retrieve. * @return mixed If set, the value at the specified offset, null otherwise. */ public function offsetGet( $offset ) { return isset( $this->callbacks[ $offset ] ) ? $this->callbacks[ $offset ] : null; } /** * Sets a value at a specified offset. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/arrayaccess.offsetset.php * * @param mixed $offset The offset to assign the value to. * @param mixed $value The value to set. */ public function offsetSet( $offset, $value ) { if ( is_null( $offset ) ) { $this->callbacks[] = $value; } else { $this->callbacks[ $offset ] = $value; } } /** * Unsets a specified offset. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/arrayaccess.offsetunset.php * * @param mixed $offset The offset to unset. */ public function offsetUnset( $offset ) { unset( $this->callbacks[ $offset ] ); } /** * Returns the current element. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/iterator.current.php * * @return array Of callbacks at current priority. */ public function current() { return current( $this->callbacks ); } /** * Moves forward to the next element. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/iterator.next.php * * @return array Of callbacks at next priority. */ public function next() { return next( $this->callbacks ); } /** * Returns the key of the current element. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/iterator.key.php * * @return mixed Returns current priority on success, or NULL on failure */ public function key() { return key( $this->callbacks ); } /** * Checks if current position is valid. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/iterator.valid.php * * @return boolean */ public function valid() { return key( $this->callbacks ) !== null; } /** * Rewinds the Iterator to the first element. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/iterator.rewind.php */ public function rewind() { reset( $this->callbacks ); } }