编辑:cron.php
<?php /** * WordPress Cron API * * @package WordPress */ /** * Schedules an event to run only once. * * Schedules a hook which will be triggered by WordPress at the specified UTC time. * The action will trigger when someone visits your WordPress site if the scheduled * time has passed. * * Note that scheduling an event to occur within 10 minutes of an existing event * with the same action hook will be ignored unless you pass unique `$args` values * for each scheduled event. * * Use wp_next_scheduled() to prevent duplicate events. * * Use wp_schedule_event() to schedule a recurring event. * * @since 2.1.0 * @since 5.1.0 Return value modified to boolean indicating success or failure, * {@see 'pre_schedule_event'} filter added to short-circuit the function. * @since 5.7.0 The `$wp_error` parameter was added. * * @link https://developer.wordpress.org/reference/functions/wp_schedule_single_event/ * * @param int $timestamp Unix timestamp (UTC) for when to next run the event. * @param string $hook Action hook to execute when the event is run. * @param array $args Optional. Array containing arguments to pass to the * hook's callback function. Each value in the array * is passed to the callback as an individual parameter. * The array keys are ignored. Default empty array. * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. * @return bool|WP_Error True if event successfully scheduled. False or WP_Error on failure. */ function wp_schedule_single_event( $timestamp, $hook, $args = array(), $wp_error = false ) { // Make sure timestamp is a positive integer. if ( ! is_numeric( $timestamp ) || $timestamp <= 0 ) { if ( $wp_error ) { return new WP_Error( 'invalid_timestamp', __( 'Event timestamp must be a valid Unix timestamp.' ) ); } return false; } $event = (object) array( 'hook' => $hook, 'timestamp' => $timestamp, 'schedule' => false, 'args' => $args, ); /** * Filter to override scheduling an event. * * Returning a non-null value will short-circuit adding the event to the * cron array, causing the function to return the filtered value instead. * * Both single events and recurring events are passed through this filter; * single events have `$event->schedule` as false, whereas recurring events * have this set to a recurrence from wp_get_schedules(). Recurring * events also have the integer recurrence interval set as `$event->interval`. * * For plugins replacing wp-cron, it is recommended you check for an * identical event within ten minutes and apply the {@see 'schedule_event'} * filter to check if another plugin has disallowed the event before scheduling. * * Return true if the event was scheduled, false or a WP_Error if not. * * @since 5.1.0 * @since 5.7.0 The `$wp_error` parameter was added, and a `WP_Error` object can now be returned. * * @param null|bool|WP_Error $result The value to return instead. Default null to continue adding the event. * @param object $event { * An object containing an event's data. * * @type string $hook Action hook to execute when the event is run. * @type int $timestamp Unix timestamp (UTC) for when to next run the event. * @type string|false $schedule How often the event should subsequently recur. * @type array $args Array containing each separate argument to pass to the hook's callback function. * @type int $interval Optional. The interval time in seconds for the schedule. Only present for recurring events. * } * @param bool $wp_error Whether to return a WP_Error on failure. */ $pre = apply_filters( 'pre_schedule_event', null, $event, $wp_error ); if ( null !== $pre ) { if ( $wp_error && false === $pre ) { return new WP_Error( 'pre_schedule_event_false', __( 'A plugin prevented the event from being scheduled.' ) ); } if ( ! $wp_error && is_wp_error( $pre ) ) { return false; } return $pre; } /* * Check for a duplicated event. * * Don't schedule an event if there's already an identical event * within 10 minutes. * * When scheduling events within ten minutes of the current time, * all past identical events are considered duplicates. * * When scheduling an event with a past timestamp (ie, before the * current time) all events scheduled within the next ten minutes * are considered duplicates. */ $crons = _get_cron_array(); $key = md5( serialize( $event->args ) ); $duplicate = false; if ( $event->timestamp < time() + 10 * MINUTE_IN_SECONDS ) { $min_timestamp = 0; } else { $min_timestamp = $event->timestamp - 10 * MINUTE_IN_SECONDS; } if ( $event->timestamp < time() ) { $max_timestamp = time() + 10 * MINUTE_IN_SECONDS; } else { $max_timestamp = $event->timestamp + 10 * MINUTE_IN_SECONDS; } foreach ( $crons as $event_timestamp => $cron ) { if ( $event_timestamp < $min_timestamp ) { continue; } if ( $event_timestamp > $max_timestamp ) { break; } if ( isset( $cron[ $event->hook ][ $key ] ) ) { $duplicate = true; break; } } if ( $duplicate ) { if ( $wp_error ) { return new WP_Error( 'duplicate_event', __( 'A duplicate event already exists.' ) ); } return false; } /** * Modify an event before it is scheduled. * * @since 3.1.0 * * @param object|false $event { * An object containing an event's data, or boolean false to prevent the event from being scheduled. * * @type string $hook Action hook to execute when the event is run. * @type int $timestamp Unix timestamp (UTC) for when to next run the event. * @type string|false $schedule How often the event should subsequently recur. * @type array $args Array containing each separate argument to pass to the hook's callback function. * @type int $interval Optional. The interval time in seconds for the schedule. Only present for recurring events. * } */ $event = apply_filters( 'schedule_event', $event ); // A plugin disallowed this event. if ( ! $event ) { if ( $wp_error ) { return new WP_Error( 'schedule_event_false', __( 'A plugin disallowed this event.' ) ); } return false; } $crons[ $event->timestamp ][ $event->hook ][ $key ] = array( 'schedule' => $event->schedule, 'args' => $event->args, ); uksort( $crons, 'strnatcasecmp' ); return _set_cron_array( $crons, $wp_error ); } /** * Schedules a recurring event. * * Schedules a hook which will be triggered by WordPress at the specified interval. * The action will trigger when someone visits your WordPress site if the scheduled * time has passed. * * Valid values for the recurrence are 'hourly', 'twicedaily', 'daily', and 'weekly'. * These can be extended using the {@see 'cron_schedules'} filter in wp_get_schedules(). * * Use wp_next_scheduled() to prevent duplicate events. * * Use wp_schedule_single_event() to schedule a non-recurring event. * * @since 2.1.0 * @since 5.1.0 Return value modified to boolean indicating success or failure, * {@see 'pre_schedule_event'} filter added to short-circuit the function. * @since 5.7.0 The `$wp_error` parameter was added. * * @link https://developer.wordpress.org/reference/functions/wp_schedule_event/ * * @param int $timestamp Unix timestamp (UTC) for when to next run the event. * @param string $recurrence How often the event should subsequently recur. * See wp_get_schedules() for accepted values. * @param string $hook Action hook to execute when the event is run. * @param array $args Optional. Array containing arguments to pass to the * hook's callback function. Each value in the array * is passed to the callback as an individual parameter. * The array keys are ignored. Default empty array. * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. * @return bool|WP_Error True if event successfully scheduled. False or WP_Error on failure. */ function wp_schedule_event( $timestamp, $recurrence, $hook, $args = array(), $wp_error = false ) { // Make sure timestamp is a positive integer. if ( ! is_numeric( $timestamp ) || $timestamp <= 0 ) { if ( $wp_error ) { return new WP_Error( 'invalid_timestamp', __( 'Event timestamp must be a valid Unix timestamp.' ) ); } return false; } $schedules = wp_get_schedules(); if ( ! isset( $schedules[ $recurrence ] ) ) { if ( $wp_error ) { return new WP_Error( 'invalid_schedule', __( 'Event schedule does not exist.' ) ); } return false; } $event = (object) array( 'hook' => $hook, 'timestamp' => $timestamp, 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[ $recurrence ]['interval'], ); /** This filter is documented in wp-includes/cron.php */ $pre = apply_filters( 'pre_schedule_event', null, $event, $wp_error ); if ( null !== $pre ) { if ( $wp_error && false === $pre ) { return new WP_Error( 'pre_schedule_event_false', __( 'A plugin prevented the event from being scheduled.' ) ); } if ( ! $wp_error && is_wp_error( $pre ) ) { return false; } return $pre; } /** This filter is documented in wp-includes/cron.php */ $event = apply_filters( 'schedule_event', $event ); // A plugin disallowed this event. if ( ! $event ) { if ( $wp_error ) { return new WP_Error( 'schedule_event_false', __( 'A plugin disallowed this event.' ) ); } return false; } $key = md5( serialize( $event->args ) ); $crons = _get_cron_array(); $crons[ $event->timestamp ][ $event->hook ][ $key ] = array( 'schedule' => $event->schedule, 'args' => $event->args, 'interval' => $event->interval, ); uksort( $crons, 'strnatcasecmp' ); return _set_cron_array( $crons, $wp_error ); } /** * Reschedules a recurring event. * * Mainly for internal use, this takes the Unix timestamp (UTC) of a previously run * recurring event and reschedules it for its next run. * * To change upcoming scheduled events, use wp_schedule_event() to * change the recurrence frequency. * * @since 2.1.0 * @since 5.1.0 Return value modified to boolean indicating success or failure, * {@see 'pre_reschedule_event'} filter added to short-circuit the function. * @since 5.7.0 The `$wp_error` parameter was added. * * @param int $timestamp Unix timestamp (UTC) for when the event was scheduled. * @param string $recurrence How often the event should subsequently recur. * See wp_get_schedules() for accepted values. * @param string $hook Action hook to execute when the event is run. * @param array $args Optional. Array containing arguments to pass to the * hook's callback function. Each value in the array * is passed to the callback as an individual parameter. * The array keys are ignored. Default empty array. * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. * @return bool|WP_Error True if event successfully rescheduled. False or WP_Error on failure. */ function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array(), $wp_error = false ) { // Make sure timestamp is a positive integer. if ( ! is_numeric( $timestamp ) || $timestamp <= 0 ) { if ( $wp_error ) { return new WP_Error( 'invalid_timestamp', __( 'Event timestamp must be a valid Unix timestamp.' ) ); } return false; } $schedules = wp_get_schedules(); $interval = 0; // First we try to get the interval from the schedule. if ( isset( $schedules[ $recurrence ] ) ) { $interval = $schedules[ $recurrence ]['interval']; } // Now we try to get it from the saved interval in case the schedule disappears. if ( 0 === $interval ) { $scheduled_event = wp_get_scheduled_event( $hook, $args, $timestamp ); if ( $scheduled_event && isset( $scheduled_event->interval ) ) { $interval = $scheduled_event->interval; } } $event = (object) array( 'hook' => $hook, 'timestamp' => $timestamp, 'schedule' => $recurrence, 'args' => $args, 'interval' => $interval, ); /** * Filter to override rescheduling of a recurring event. * * Returning a non-null value will short-circuit the normal rescheduling * process, causing the function to return the filtered value instead. * * For plugins replacing wp-cron, return true if the event was successfully * rescheduled, false or a WP_Error if not. * * @since 5.1.0 * @since 5.7.0 The `$wp_error` parameter was added, and a `WP_Error` object can now be returned. * * @param null|bool|WP_Error $pre Value to return instead. Default null to continue adding the event. * @param object $event { * An object containing an event's data. * * @type string $hook Action hook to execute when the event is run. * @type int $timestamp Unix timestamp (UTC) for when to next run the event. * @type string $schedule How often the event should subsequently recur. * @type array $args Array containing each separate argument to pass to the hook's callback function. * @type int $interval The interval time in seconds for the schedule. * } * @param bool $wp_error Whether to return a WP_Error on failure. */ $pre = apply_filters( 'pre_reschedule_event', null, $event, $wp_error ); if ( null !== $pre ) { if ( $wp_error && false === $pre ) { return new WP_Error( 'pre_reschedule_event_false', __( 'A plugin prevented the event from being rescheduled.' ) ); } if ( ! $wp_error && is_wp_error( $pre ) ) { return false; } return $pre; } // Now we assume something is wrong and fail to schedule. if ( 0 === $interval ) { if ( $wp_error ) { return new WP_Error( 'invalid_schedule', __( 'Event schedule does not exist.' ) ); } return false; } $now = time(); if ( $timestamp >= $now ) { $timestamp = $now + $interval; } else { $timestamp = $now + ( $interval - ( ( $now - $timestamp ) % $interval ) ); } return wp_schedule_event( $timestamp, $recurrence, $hook, $args, $wp_error ); } /** * Unschedules a previously scheduled event. * * The `$timestamp` and `$hook` parameters are required so that the event can be * identified. * * @since 2.1.0 * @since 5.1.0 Return value modified to boolean indicating success or failure, * {@see 'pre_unschedule_event'} filter added to short-circuit the function. * @since 5.7.0 The `$wp_error` parameter was added. * * @param int $timestamp Unix timestamp (UTC) of the event. * @param string $hook Action hook of the event. * @param array $args Optional. Array containing each separate argument to pass to the hook's callback function. * Although not passed to a callback, these arguments are used to uniquely identify the * event, so they should be the same as those used when originally scheduling the event. * Default empty array. * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. * @return bool|WP_Error True if event successfully unscheduled. False or WP_Error on failure. */ function wp_unschedule_event( $timestamp, $hook, $args = array(), $wp_error = false ) { // Make sure timestamp is a positive integer. if ( ! is_numeric( $timestamp ) || $timestamp <= 0 ) { if ( $wp_error ) { return new WP_Error( 'invalid_timestamp', __( 'Event timestamp must be a valid Unix timestamp.' ) ); } return false; } /** * Filter to override unscheduling of events. * * Returning a non-null value will short-circuit the normal unscheduling * process, causing the function to return the filtered value instead. * * For plugins replacing wp-cron, return true if the event was successfully * unscheduled, false or a WP_Error if not. * * @since 5.1.0 * @since 5.7.0 The `$wp_error` parameter was added, and a `WP_Error` object can now be returned. * * @param null|bool|WP_Error $pre Value to return instead. Default null to continue unscheduling the event. * @param int $timestamp Unix timestamp (UTC) for when to run the event. * @param string $hook Action hook, the execution of which will be unscheduled. * @param array $args Arguments to pass to the hook's callback function. * @param bool $wp_error Whether to return a WP_Error on failure. */ $pre = apply_filters( 'pre_unschedule_event', null, $timestamp, $hook, $args, $wp_error ); if ( null !== $pre ) { if ( $wp_error && false === $pre ) { return new WP_Error( 'pre_unschedule_event_false', __( 'A plugin prevented the event from being unscheduled.' ) ); } if ( ! $wp_error && is_wp_error( $pre ) ) { return false; } return $pre; } $crons = _get_cron_array(); $key = md5( serialize( $args ) ); unset( $crons[ $timestamp ][ $hook ][ $key ] ); if ( empty( $crons[ $timestamp ][ $hook ] ) ) { unset( $crons[ $timestamp ][ $hook ] ); } if ( empty( $crons[ $timestamp ] ) ) { unset( $crons[ $timestamp ] ); } return _set_cron_array( $crons, $wp_error ); } /** * Unschedules all events attached to the hook with the specified arguments. * * Warning: This function may return boolean false, but may also return a non-boolean * value which evaluates to false. For information about casting to booleans see the * {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use * the `===` operator for testing the return value of this function. * * @since 2.1.0 * @since 5.1.0 Return value modified to indicate success or failure, * {@see 'pre_clear_scheduled_hook'} filter added to short-circuit the function. * @since 5.7.0 The `$wp_error` parameter was added. * * @param string $hook Action hook, the execution of which will be unscheduled. * @param array $args Optional. Array containing each separate argument to pass to the hook's callback function. * Although not passed to a callback, these arguments are used to uniquely identify the * event, so they should be the same as those used when originally scheduling the event. * Default empty array. * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. * @return int|false|WP_Error On success an integer indicating number of events unscheduled (0 indicates no * events were registered with the hook and arguments combination), false or WP_Error * if unscheduling one or more events fail. */ function wp_clear_scheduled_hook( $hook, $args = array(), $wp_error = false ) { /* * Backward compatibility. * Previously, this function took the arguments as discrete vars rather than an array like the rest of the API. */ if ( ! is_array( $args ) ) { _deprecated_argument( __FUNCTION__, '3.0.0', __( 'This argument has changed to an array to match the behavior of the other cron functions.' ) ); $args = array_slice( func_get_args(), 1 ); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection $wp_error = false; } /** * Filter to override clearing a scheduled hook. * * Returning a non-null value will short-circuit the normal unscheduling * process, causing the function to return the filtered value instead. * * For plugins replacing wp-cron, return the number of events successfully * unscheduled (zero if no events were registered with the hook) or false * or a WP_Error if unscheduling one or more events fails. * * @since 5.1.0 * @since 5.7.0 The `$wp_error` parameter was added, and a `WP_Error` object can now be returned. * * @param null|int|false|WP_Error $pre Value to return instead. Default null to continue unscheduling the event. * @param string $hook Action hook, the execution of which will be unscheduled. * @param array $args Arguments to pass to the hook's callback function. * @param bool $wp_error Whether to return a WP_Error on failure. */ $pre = apply_filters( 'pre_clear_scheduled_hook', null, $hook, $args, $wp_error ); if ( null !== $pre ) { if ( $wp_error && false === $pre ) { return new WP_Error( 'pre_clear_scheduled_hook_false', __( 'A plugin prevented the hook from being cleared.' ) ); } if ( ! $wp_error && is_wp_error( $pre ) ) { return false; } return $pre; } /* * This logic duplicates wp_next_scheduled(). * It's required due to a scenario where wp_unschedule_event() fails due to update_option() failing, * and, wp_next_scheduled() returns the same schedule in an infinite loop. */ $crons = _get_cron_array(); if ( empty( $crons ) ) { return 0; } $results = array(); $key = md5( serialize( $args ) ); foreach ( $crons as $timestamp => $cron ) { if ( isset( $cron[ $hook ][ $key ] ) ) { $results[] = wp_unschedule_event( $timestamp, $hook, $args, true ); } } $errors = array_filter( $results, 'is_wp_error' ); $error = new WP_Error(); if ( $errors ) { if ( $wp_error ) { array_walk( $errors, array( $error, 'merge_from' ) ); return $error; } return false; } return count( $results ); } /** * Unschedules all events attached to the hook. * * Can be useful for plugins when deactivating to clean up the cron queue. * * Warning: This function may return boolean false, but may also return a non-boolean * value which evaluates to false. For information about casting to booleans see the * {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use * the `===` operator for testing the return value of this function. * * @since 4.9.0 * @since 5.1.0 Return value added to indicate success or failure. * @since 5.7.0 The `$wp_error` parameter was added. * * @param string $hook Action hook, the execution of which will be unscheduled. * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. * @return int|false|WP_Error On success an integer indicating number of events unscheduled (0 indicates no * events were registered on the hook), false or WP_Error if unscheduling fails. */ function wp_unschedule_hook( $hook, $wp_error = false ) { /** * Filter to override clearing all events attached to the hook. * * Returning a non-null value will short-circuit the normal unscheduling * process, causing the function to return the filtered value instead. * * For plugins replacing wp-cron, return the number of events successfully * unscheduled (zero if no events were registered with the hook). If unscheduling * one or more events fails then return either a WP_Error object or false depending * on the value of the `$wp_error` parameter. * * @since 5.1.0 * @since 5.7.0 The `$wp_error` parameter was added, and a `WP_Error` object can now be returned. * * @param null|int|false|WP_Error $pre Value to return instead. Default null to continue unscheduling the hook. * @param string $hook Action hook, the execution of which will be unscheduled. * @param bool $wp_error Whether to return a WP_Error on failure. */ $pre = apply_filters( 'pre_unschedule_hook', null, $hook, $wp_error ); if ( null !== $pre ) { if ( $wp_error && false === $pre ) { return new WP_Error( 'pre_unschedule_hook_false', __( 'A plugin prevented the hook from being cleared.' ) ); } if ( ! $wp_error && is_wp_error( $pre ) ) { return false; } return $pre; } $crons = _get_cron_array(); if ( empty( $crons ) ) { return 0; } $results = array(); foreach ( $crons as $timestamp => $args ) { if ( ! empty( $crons[ $timestamp ][ $hook ] ) ) { $results[] = count( $crons[ $timestamp ][ $hook ] ); } unset( $crons[ $timestamp ][ $hook ] ); if ( empty( $crons[ $timestamp ] ) ) { unset( $crons[ $timestamp ] ); } } /* * If the results are empty (zero events to unschedule), no attempt * to update the cron array is required. */ if ( empty( $results ) ) { return 0; } $set = _set_cron_array( $crons, $wp_error ); if ( true === $set ) { return array_sum( $results ); } return $set; } /** * Retrieves a scheduled event. * * Retrieves the full event object for a given event, if no timestamp is specified the next * scheduled event is returned. * * @since 5.1.0 * * @param string $hook Action hook of the event. * @param array $args Optional. Array containing each separate argument to pass to the hook's callback function. * Although not passed to a callback, these arguments are used to uniquely identify the * event, so they should be the same as those used when originally scheduling the event. * Default empty array. * @param int|null $timestamp Optional. Unix timestamp (UTC) of the event. If not specified, the next scheduled event * is returned. Default null. * @return object|false { * The event object. False if the event does not exist. * * @type string $hook Action hook to execute when the event is run. * @type int $timestamp Unix timestamp (UTC) for when to next run the event. * @type string|false $schedule How often the event should subsequently recur. * @type array $args Array containing each separate argument to pass to the hook's callback function. * @type int $interval Optional. The interval time in seconds for the schedule. Only present for recurring events. * } */ function wp_get_scheduled_event( $hook, $args = array(), $timestamp = null ) { /** * Filter to override retrieving a scheduled event. * * Returning a non-null value will short-circuit the normal process, * returning the filtered value instead. * * Return false if the event does not exist, otherwise an event object * should be returned. * * @since 5.1.0 * * @param null|false|object $pre Value to return instead. Default null to continue retrieving the event. * @param string $hook Action hook of the event. * @param array $args Array containing each separate argument to pass to the hook's callback function. * Although not passed to a callback, these arguments are used to uniquely identify * the event. * @param int|null $timestamp Unix timestamp (UTC) of the event. Null to retrieve next scheduled event. */ $pre = apply_filters( 'pre_get_scheduled_event', null, $hook, $args, $timestamp ); if ( null !== $pre ) { return $pre; } if ( null !== $timestamp && ! is_numeric( $timestamp ) ) { return false; } $crons = _get_cron_array(); if ( empty( $crons ) ) { return false; } $key = md5( serialize( $args ) ); if ( ! $timestamp ) { // Get next event. $next = false; foreach ( $crons as $timestamp => $cron ) { if ( isset( $cron[ $hook ][ $key ] ) ) { $next = $timestamp; break; } } if ( ! $next ) { return false; } $timestamp = $next; } elseif ( ! isset( $crons[ $timestamp ][ $hook ][ $key ] ) ) { return false; } $event = (object) array( 'hook' => $hook, 'timestamp' => $timestamp, 'schedule' => $crons[ $timestamp ][ $hook ][ $key ]['schedule'], 'args' => $args, ); if ( isset( $crons[ $timestamp ][ $hook ][ $key ]['interval'] ) ) { $event->interval = $crons[ $timestamp ][ $hook ][ $key ]['interval']; } return $event; } /** * Retrieves the timestamp of the next scheduled event for the given hook. * * @since 2.1.0 * * @param string $hook Action hook of the event. * @param array $args Optional. Array containing each separate argument to pass to the hook's callback function. * Although not passed to a callback, these arguments are used to uniquely identify the * event, so they should be the same as those used when originally scheduling the event. * Default empty array. * @return int|false The Unix timestamp (UTC) of the next time the event will occur. False if the event doesn't exist. */ function wp_next_scheduled( $hook, $args = array() ) { $next_event = wp_get_scheduled_event( $hook, $args ); if ( ! $next_event ) { return false; } /** * Filters the timestamp of the next scheduled event for the given hook. * * @since 6.8.0 * * @param int $timestamp Unix timestamp (UTC) for when to next run the event. * @param object $next_event { * An object containing an event's data. * * @type string $hook Action hook of the event. * @type int $timestamp Unix timestamp (UTC) for when to next run the event. * @type string $schedule How often the event should subsequently recur. * @type array $args Array containing each separate argument to pass to the hook * callback function. * @type int $interval Optional. The interval time in seconds for the schedule. Only * present for recurring events. * } * @param array $args Array containing each separate argument to pass to the hook * callback function. */ return apply_filters( 'wp_next_scheduled', $next_event->timestamp, $next_event, $hook, $args ); } /** * Sends a request to run cron through HTTP request that doesn't halt page loading. * * @since 2.1.0 * @since 5.1.0 Return values added. * * @param int $gmt_time Optional. Unix timestamp (UTC). Default 0 (current time is used). * @return bool True if spawned, false if no events spawned. */ function spawn_cron( $gmt_time = 0 ) { if ( ! $gmt_time ) { $gmt_time = microtime( true ); } if ( defined( 'DOING_CRON' ) || isset( $_GET['doing_wp_cron'] ) ) { return false; } /* * Get the cron lock, which is a Unix timestamp of when the last cron was spawned * and has not finished running. * * Multiple processes on multiple web servers can run this code concurrently, * this lock attempts to make spawning as atomic as possible. */ $lock = (float) get_transient( 'doing_cron' ); if ( $lock > $gmt_time + 10 * MINUTE_IN_SECONDS ) { $lock = 0; } // Don't run if another process is currently running it or more than once every 60 sec. if ( $lock + WP_CRON_LOCK_TIMEOUT > $gmt_time ) { return false; } // Confidence check. $crons = wp_get_ready_cron_jobs(); if ( empty( $crons ) ) { return false; } $keys = array_keys( $crons ); if ( isset( $keys[0] ) && $keys[0] > $gmt_time ) { return false; } if ( defined( 'ALTERNATE_WP_CRON' ) && ALTERNATE_WP_CRON ) { if ( 'GET' !== $_SERVER['REQUEST_METHOD'] || defined( 'DOING_AJAX' ) || defined( 'XMLRPC_REQUEST' ) ) { return false; } $doing_wp_cron = sprintf( '%.22F', $gmt_time ); set_transient( 'doing_cron', $doing_wp_cron ); ob_start(); wp_redirect( add_query_arg( 'doing_wp_cron', $doing_wp_cron, wp_unslash( $_SERVER['REQUEST_URI'] ) ) ); echo ' '; // Flush any buffers and send the headers. wp_ob_end_flush_all(); flush(); require_once ABSPATH . 'wp-cron.php'; return true; } // Set the cron lock with the current unix timestamp, when the cron is being spawned. $doing_wp_cron = sprintf( '%.22F', $gmt_time ); set_transient( 'doing_cron', $doing_wp_cron ); /** * Filters the cron request arguments. * * @since 3.5.0 * @since 4.5.0 The `$doing_wp_cron` parameter was added. * * @param array $cron_request_array { * An array of cron request URL arguments. * * @type string $url The cron request URL. * @type string $key The Unix timestamp (UTC) of the cron lock with microseconds. * @type array $args { * An array of cron request arguments. * * @type int $timeout The request timeout in seconds. Default .01 seconds. * @type bool $blocking Whether to set blocking for the request. Default false. * @type bool $sslverify Whether SSL should be verified for the request. Default false. * } * } * @param string $doing_wp_cron The Unix timestamp (UTC) of the cron lock with microseconds. */ $cron_request = apply_filters( 'cron_request', array( 'url' => add_query_arg( 'doing_wp_cron', $doing_wp_cron, site_url( 'wp-cron.php' ) ), 'key' => $doing_wp_cron, 'args' => array( 'timeout' => 0.01, 'blocking' => false, /** This filter is documented in wp-includes/class-wp-http-streams.php */ 'sslverify' => apply_filters( 'https_local_ssl_verify', false ), ), ), $doing_wp_cron ); $result = wp_remote_post( $cron_request['url'], $cron_request['args'] ); return ! is_wp_error( $result ); } /** * Registers _wp_cron() to run on the {@see 'shutdown'} action. * * The spawn_cron() function attempts to make a non-blocking loopback request to `wp-cron.php` (when alternative * cron is not being used). However, the wp_remote_post() function does not always respect the `timeout` and * `blocking` parameters. A timeout of `0.01` may end up taking 1 second. When this runs at the {@see 'wp_loaded'} * action, it increases the Time To First Byte (TTFB) since the HTML cannot be sent while waiting for the cron request * to initiate. Moving the spawning of cron to the {@see 'shutdown'} hook allows for the server to flush the HTML document to * the browser while waiting for the request. * * @since 2.1.0 * @since 5.1.0 Return value added to indicate success or failure. * @since 5.7.0 Functionality moved to _wp_cron() to which this becomes a wrapper. * @since 6.9.0 The _wp_cron() callback is moved from {@see 'wp_loaded'} to the {@see 'shutdown'} action, * unless `ALTERNATE_WP_CRON` is enabled; the function now always returns void. */ function wp_cron(): void { if ( defined( 'ALTERNATE_WP_CRON' ) && ALTERNATE_WP_CRON ) { if ( did_action( 'wp_loaded' ) ) { _wp_cron(); } else { add_action( 'wp_loaded', '_wp_cron', 20 ); } } elseif ( doing_action( 'shutdown' ) ) { _wp_cron(); } else { add_action( 'shutdown', '_wp_cron' ); } } /** * Runs scheduled callbacks or spawns cron for all scheduled events. * * Warning: This function may return Boolean FALSE, but may also return a non-Boolean * value which evaluates to FALSE. For information about casting to booleans see the * {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use * the `===` operator for testing the return value of this function. * * @since 5.7.0 * @access private * * @return int|false On success an integer indicating number of events spawned (0 indicates no * events needed to be spawned), false if spawning fails for one or more events. */ function _wp_cron() { // Prevent infinite loops caused by lack of wp-cron.php. if ( str_contains( $_SERVER['REQUEST_URI'], '/wp-cron.php' ) || ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) ) { return 0; } $crons = wp_get_ready_cron_jobs(); if ( empty( $crons ) ) { return 0; } $gmt_time = microtime( true ); $keys = array_keys( $crons ); if ( isset( $keys[0] ) && $keys[0] > $gmt_time ) { return 0; } $schedules = wp_get_schedules(); $results = array(); foreach ( $crons as $timestamp => $cronhooks ) { if ( $timestamp > $gmt_time ) { break; } foreach ( (array) $cronhooks as $hook => $args ) { if ( isset( $schedules[ $hook ]['callback'] ) && ! call_user_func( $schedules[ $hook ]['callback'] ) ) { continue; } $results[] = spawn_cron( $gmt_time ); break 2; } } if ( in_array( false, $results, true ) ) { return false; } return count( $results ); } /** * Retrieves supported event recurrence schedules. * * The default supported recurrences are 'hourly', 'twicedaily', 'daily', and 'weekly'. * A plugin may add more by hooking into the {@see 'cron_schedules'} filter. * The filter accepts an array of arrays. The outer array has a key that is the name * of the schedule, for example 'monthly'. The value is an array with two keys, * one is 'interval' and the other is 'display'. * * The 'interval' is a number in seconds of when the cron job should run. * So for 'hourly' the time is `HOUR_IN_SECONDS` (`60 * 60` or `3600`). For 'monthly', * the value would be `MONTH_IN_SECONDS` (`30 * 24 * 60 * 60` or `2592000`). * * The 'display' is the description. For the 'monthly' key, the 'display' * would be `__( 'Once Monthly' )`. * * For your plugin, you will be passed an array. You can add your * schedule by doing the following: * * // Filter parameter variable name is 'array'. * $array['monthly'] = array( * 'interval' => MONTH_IN_SECONDS, * 'display' => __( 'Once Monthly' ) * ); * * @since 2.1.0 * @since 5.4.0 The 'weekly' schedule was added. * * @return array { * The array of cron schedules keyed by the schedule name. * * @type array ...$0 { * Cron schedule information. * * @type int $interval The schedule interval in seconds. * @type string $display The schedule display name. * } * } */ function wp_get_schedules() { $schedules = array( 'hourly' => array( 'interval' => HOUR_IN_SECONDS, 'display' => __( 'Once Hourly' ), ), 'twicedaily' => array( 'interval' => 12 * HOUR_IN_SECONDS, 'display' => __( 'Twice Daily' ), ), 'daily' => array( 'interval' => DAY_IN_SECONDS, 'display' => __( 'Once Daily' ), ), 'weekly' => array( 'interval' => WEEK_IN_SECONDS, 'display' => __( 'Once Weekly' ), ), ); /** * Filters the non-default cron schedules. * * @since 2.1.0 * * @param array $new_schedules { * An array of non-default cron schedules keyed by the schedule name. Default empty array. * * @type array ...$0 { * Cron schedule information. * * @type int $interval The schedule interval in seconds. * @type string $display The schedule display name. * } * } */ return array_merge( apply_filters( 'cron_schedules', array() ), $schedules ); } /** * Retrieves the name of the recurrence schedule for an event. * * @see wp_get_schedules() for available schedules. * * @since 2.1.0 * @since 5.1.0 {@see 'get_schedule'} filter added. * * @param string $hook Action hook to identify the event. * @param array $args Optional. Arguments passed to the event's callback function. * Default empty array. * @return string|false Schedule name on success, false if no schedule. */ function wp_get_schedule( $hook, $args = array() ) { $schedule = false; $event = wp_get_scheduled_event( $hook, $args ); if ( $event ) { $schedule = $event->schedule; } /** * Filters the schedule name for a hook. * * @since 5.1.0 * * @param string|false $schedule Schedule for the hook. False if not found. * @param string $hook Action hook to execute when cron is run. * @param array $args Arguments to pass to the hook's callback function. */ return apply_filters( 'get_schedule', $schedule, $hook, $args ); } /** * Retrieves cron jobs ready to be run. * * Returns the results of _get_cron_array() limited to events ready to be run, * ie, with a timestamp in the past. * * @since 5.1.0 * * @return array[] Array of cron job arrays ready to be run. */ function wp_get_ready_cron_jobs() { /** * Filter to override retrieving ready cron jobs. * * Returning an array will short-circuit the normal retrieval of ready * cron jobs, causing the function to return the filtered value instead. * * @since 5.1.0 * * @param null|array[] $pre Array of ready cron tasks to return instead. Default null * to continue using results from _get_cron_array(). */ $pre = apply_filters( 'pre_get_ready_cron_jobs', null ); if ( null !== $pre ) { return $pre; } $crons = _get_cron_array(); $gmt_time = microtime( true ); $results = array(); foreach ( $crons as $timestamp => $cronhooks ) { if ( $timestamp > $gmt_time ) { break; } $results[ $timestamp ] = $cronhooks; } return $results; } // // Private functions. // /** * Retrieves cron info array option. * * @since 2.1.0 * @since 6.1.0 Return type modified to consistently return an array. * @access private * * @return array[] Array of cron events. */ function _get_cron_array() { $cron = get_option( 'cron' ); if ( ! is_array( $cron ) ) { return array(); } if ( ! isset( $cron['version'] ) ) { $cron = _upgrade_cron_array( $cron ); } unset( $cron['version'] ); return $cron; } /** * Updates the cron option with the new cron array. * * @since 2.1.0 * @since 5.1.0 Return value modified to outcome of update_option(). * @since 5.7.0 The `$wp_error` parameter was added. * * @access private * * @param array[] $cron Array of cron info arrays from _get_cron_array(). * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. * @return bool|WP_Error True if cron array updated. False or WP_Error on failure. */ function _set_cron_array( $cron, $wp_error = false ) { if ( ! is_array( $cron ) ) { $cron = array(); } $cron['version'] = 2; $result = update_option( 'cron', $cron, true ); if ( $wp_error && ! $result ) { return new WP_Error( 'could_not_set', __( 'The cron event list could not be saved.' ) ); } return $result; } /** * Upgrades a cron info array. * * This function upgrades the cron info array to version 2. * * @since 2.1.0 * @access private * * @param array $cron Cron info array from _get_cron_array(). * @return array An upgraded cron info array. */ function _upgrade_cron_array( $cron ) { if ( isset( $cron['version'] ) && 2 === $cron['version'] ) { return $cron; } $new_cron = array(); foreach ( (array) $cron as $timestamp => $hooks ) { foreach ( (array) $hooks as $hook => $args ) { $key = md5( serialize( $args['args'] ) ); $new_cron[ $timestamp ][ $hook ][ $key ] = $args; } } $new_cron['version'] = 2; update_option( 'cron', $new_cron, true ); return $new_cron; }
保存文件
位置:
home
/
fembzvrs
/
zimeza.com
/
wp-includes
批量上传
创建
创建
批量权限
批量删除
名称
权限
大小
修改时间
操作
↑ 返回上级
-
-
-
-
ID3
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
IXR
drwxr-xr-x
-
2025-07-18 20:29
权限
删除
重命名
PHPMailer
drwxr-xr-x
-
2026-01-29 20:52
权限
删除
重命名
Requests
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
SimplePie
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
Text
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
abilities-api
drwxr-xr-x
-
2025-12-03 02:17
权限
删除
重命名
assets
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
block-bindings
drwxr-xr-x
-
2025-12-21 04:19
权限
删除
重命名
block-patterns
drwxr-xr-x
-
2025-12-21 04:19
权限
删除
重命名
block-supports
drwxr-xr-x
-
2025-12-03 02:17
权限
删除
重命名
blocks
drwxr-xr-x
-
2025-12-03 02:17
权限
删除
重命名
certificates
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
css
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
customize
drwxr-xr-x
-
2025-07-06 17:21
权限
删除
重命名
fonts
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
html-api
drwxr-xr-x
-
2025-12-21 04:20
权限
删除
重命名
images
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
interactivity-api
drwxr-xr-x
-
2025-12-21 04:20
权限
删除
重命名
js
drwxr-xr-x
-
2025-12-03 02:17
权限
删除
重命名
l10n
drwxr-xr-x
-
2025-12-21 04:21
权限
删除
重命名
php-compat
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
pomo
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
rest-api
drwxr-xr-x
-
2025-12-21 04:21
权限
删除
重命名
sitemaps
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
sodium_compat
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
style-engine
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
theme-compat
drwxr-xr-x
-
2026-05-13 12:01
权限
删除
重命名
widgets
drwxr-xr-x
-
2025-12-21 04:21
权限
删除
重命名
abilities-api.php
-rw-r--r--
23.8 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
abilities.php
-rw-r--r--
7.8 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
admin-bar.php
-rw-r--r--
36.1 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
atomlib.php
-rw-r--r--
11.9 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
block-bindings.php
-rw-r--r--
7.35 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
block-editor.php
-rw-r--r--
28.6 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
block-i18n.json
-rw-r--r--
316 B
2021-08-11 13:08
编辑
下载
权限
删除
重命名
block-patterns.php
-rw-r--r--
12.9 KB
2024-11-30 03:46
编辑
下载
权限
删除
重命名
block-template-utils.php
-rw-r--r--
61.02 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
block-template.php
-rw-r--r--
15 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
blocks.php
-rw-r--r--
112.05 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
bookmark-template.php
-rw-r--r--
12.47 KB
2025-03-20 03:15
编辑
下载
权限
删除
重命名
cache-compat.php
-rw-r--r--
9.84 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
cache.php
-rw-r--r--
13.17 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
canonical.php
-rw-r--r--
33.83 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
capabilities.php
-rw-r--r--
42.63 KB
2026-02-04 02:17
编辑
下载
权限
删除
重命名
category-template.php
-rw-r--r--
55.71 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
category.php
-rw-r--r--
12.53 KB
2025-01-25 04:28
编辑
下载
权限
删除
重命名
class-IXR.php
-rw-r--r--
2.55 KB
2025-01-23 00:48
编辑
下载
权限
删除
重命名
class-avif-info.php
-rw-r--r--
28.92 KB
2024-04-26 19:02
编辑
下载
权限
删除
重命名
class-feed.php
-rw-r--r--
539 B
2024-10-01 02:50
编辑
下载
权限
删除
重命名
class-http.php
-rw-r--r--
367 B
2022-06-17 15:20
编辑
下载
权限
删除
重命名
class-json.php
-rw-r--r--
42.65 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-oembed.php
-rw-r--r--
401 B
2022-06-17 15:20
编辑
下载
权限
删除
重命名
class-phpass.php
-rw-r--r--
6.61 KB
2024-09-18 01:08
编辑
下载
权限
删除
重命名
class-pop3.php
-rw-r--r--
20.63 KB
2024-10-26 00:26
编辑
下载
权限
删除
重命名
class-requests.php
-rw-r--r--
2.18 KB
2023-04-05 17:12
编辑
下载
权限
删除
重命名
class-simplepie.php
-rw-r--r--
453 B
2024-10-01 02:50
编辑
下载
权限
删除
重命名
class-smtp.php
-rw-r--r--
457 B
2021-01-26 18:45
编辑
下载
权限
删除
重命名
class-snoopy.php
-rw-r--r--
36.83 KB
2023-02-03 18:35
编辑
下载
权限
删除
重命名
class-walker-category-dropdown.php
-rw-r--r--
2.41 KB
2023-09-14 16:46
编辑
下载
权限
删除
重命名
class-walker-comment.php
-rw-r--r--
13.89 KB
2024-03-18 19:46
编辑
下载
权限
删除
重命名
class-walker-nav-menu.php
-rw-r--r--
11.76 KB
2025-01-22 02:26
编辑
下载
权限
删除
重命名
class-walker-page-dropdown.php
-rw-r--r--
2.65 KB
2023-09-14 16:46
编辑
下载
权限
删除
重命名
class-wp-admin-bar.php
-rw-r--r--
17.46 KB
2024-07-18 04:52
编辑
下载
权限
删除
重命名
class-wp-ajax-response.php
-rw-r--r--
5.14 KB
2022-09-12 19:47
编辑
下载
权限
删除
重命名
class-wp-application-passwords.php
-rw-r--r--
16.7 KB
2025-04-03 18:38
编辑
下载
权限
删除
重命名
class-wp-block-bindings-registry.php
-rw-r--r--
8.28 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-block-bindings-source.php
-rw-r--r--
2.92 KB
2024-09-03 20:33
编辑
下载
权限
删除
重命名
class-wp-block-editor-context.php
-rw-r--r--
1.32 KB
2022-09-12 19:47
编辑
下载
权限
删除
重命名
class-wp-block-list.php
-rw-r--r--
4.6 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-block-metadata-registry.php
-rw-r--r--
11.62 KB
2025-03-06 03:17
编辑
下载
权限
删除
重命名
class-wp-block-parser-block.php
-rw-r--r--
2.5 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-block-parser-frame.php
-rw-r--r--
1.97 KB
2024-09-20 05:55
编辑
下载
权限
删除
重命名
class-wp-block-parser.php
-rw-r--r--
11.25 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-block-pattern-categories-registry.php
-rw-r--r--
5.32 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-block-patterns-registry.php
-rw-r--r--
10.99 KB
2026-03-11 02:16
编辑
下载
权限
删除
重命名
class-wp-block-processor.php
-rw-r--r--
68.32 KB
2026-02-04 02:17
编辑
下载
权限
删除
重命名
class-wp-block-styles-registry.php
-rw-r--r--
6.34 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-block-supports.php
-rw-r--r--
5.49 KB
2025-03-04 18:06
编辑
下载
权限
删除
重命名
class-wp-block-template.php
-rw-r--r--
1.99 KB
2024-09-20 06:07
编辑
下载
权限
删除
重命名
class-wp-block-templates-registry.php
-rw-r--r--
7.02 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-block-type-registry.php
-rw-r--r--
4.91 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-block-type.php
-rw-r--r--
16.86 KB
2024-05-02 04:01
编辑
下载
权限
删除
重命名
class-wp-block.php
-rw-r--r--
24.23 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-classic-to-block-menu-converter.php
-rw-r--r--
3.97 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-comment-query.php
-rw-r--r--
47.66 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-comment.php
-rw-r--r--
9.22 KB
2025-02-11 18:40
编辑
下载
权限
删除
重命名
class-wp-customize-control.php
-rw-r--r--
25.51 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-customize-manager.php
-rw-r--r--
198.38 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-customize-nav-menus.php
-rw-r--r--
56.65 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-customize-panel.php
-rw-r--r--
10.46 KB
2025-01-23 00:48
编辑
下载
权限
删除
重命名
class-wp-customize-section.php
-rw-r--r--
10.95 KB
2024-10-13 23:09
编辑
下载
权限
删除
重命名
class-wp-customize-setting.php
-rw-r--r--
29.26 KB
2025-01-23 00:48
编辑
下载
权限
删除
重命名
class-wp-customize-widgets.php
-rw-r--r--
70.91 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-date-query.php
-rw-r--r--
35.3 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-dependencies.php
-rw-r--r--
16.61 KB
2026-02-04 02:17
编辑
下载
权限
删除
重命名
class-wp-dependency.php
-rw-r--r--
2.57 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-duotone.php
-rw-r--r--
39.83 KB
2024-06-14 16:18
编辑
下载
权限
删除
重命名
class-wp-editor.php
-rw-r--r--
70.64 KB
2025-04-25 22:28
编辑
下载
权限
删除
重命名
class-wp-embed.php
-rw-r--r--
15.56 KB
2025-04-14 18:31
编辑
下载
权限
删除
重命名
class-wp-error.php
-rw-r--r--
7.33 KB
2023-02-21 21:39
编辑
下载
权限
删除
重命名
class-wp-exception.php
-rw-r--r--
253 B
2024-09-27 23:28
编辑
下载
权限
删除
重命名
class-wp-fatal-error-handler.php
-rw-r--r--
7.96 KB
2024-10-22 14:16
编辑
下载
权限
删除
重命名
class-wp-feed-cache-transient.php
-rw-r--r--
3.23 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-feed-cache.php
-rw-r--r--
969 B
2024-10-01 02:50
编辑
下载
权限
删除
重命名
class-wp-hook.php
-rw-r--r--
16.28 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-http-cookie.php
-rw-r--r--
7.22 KB
2023-06-24 21:17
编辑
下载
权限
删除
重命名
class-wp-http-curl.php
-rw-r--r--
12.95 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-http-encoding.php
-rw-r--r--
6.53 KB
2023-06-22 18:57
编辑
下载
权限
删除
重命名
class-wp-http-ixr-client.php
-rw-r--r--
3.42 KB
2026-03-11 02:16
编辑
下载
权限
删除
重命名
class-wp-http-proxy.php
-rw-r--r--
5.84 KB
2023-06-22 18:36
编辑
下载
权限
删除
重命名
class-wp-http-requests-hooks.php
-rw-r--r--
1.97 KB
2022-12-16 02:32
编辑
下载
权限
删除
重命名
class-wp-http-requests-response.php
-rw-r--r--
4.3 KB
2023-10-11 11:05
编辑
下载
权限
删除
重命名
class-wp-http-response.php
-rw-r--r--
2.91 KB
2022-09-12 19:47
编辑
下载
权限
删除
重命名
class-wp-http-streams.php
-rw-r--r--
16.46 KB
2023-09-21 22:29
编辑
下载
权限
删除
重命名
class-wp-http.php
-rw-r--r--
40.6 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-image-editor.php
-rw-r--r--
17.01 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-list-util.php
-rw-r--r--
7.27 KB
2024-02-28 03:38
编辑
下载
权限
删除
重命名
class-wp-locale-switcher.php
-rw-r--r--
6.62 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-locale.php
-rw-r--r--
16.49 KB
2025-02-26 03:40
编辑
下载
权限
删除
重命名
class-wp-matchesmapregex.php
-rw-r--r--
1.79 KB
2024-02-06 06:25
编辑
下载
权限
删除
重命名
class-wp-meta-query.php
-rw-r--r--
29.82 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-metadata-lazyloader.php
-rw-r--r--
6.67 KB
2023-05-11 15:15
编辑
下载
权限
删除
重命名
class-wp-navigation-fallback.php
-rw-r--r--
8.98 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-network-query.php
-rw-r--r--
19.42 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-network.php
-rw-r--r--
12.01 KB
2024-09-14 02:12
编辑
下载
权限
删除
重命名
class-wp-object-cache.php
-rw-r--r--
17.11 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-oembed-controller.php
-rw-r--r--
6.74 KB
2024-03-06 10:05
编辑
下载
权限
删除
重命名
class-wp-oembed.php
-rw-r--r--
30.93 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-paused-extensions-storage.php
-rw-r--r--
4.99 KB
2024-09-03 22:19
编辑
下载
权限
删除
重命名
class-wp-plugin-dependencies.php
-rw-r--r--
24.72 KB
2025-03-18 02:40
编辑
下载
权限
删除
重命名
class-wp-post-type.php
-rw-r--r--
29.96 KB
2025-02-09 16:09
编辑
下载
权限
删除
重命名
class-wp-post.php
-rw-r--r--
6.34 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-query.php
-rw-r--r--
159.91 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-cookie-service.php
-rw-r--r--
6.72 KB
2022-10-04 07:59
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-email-service.php
-rw-r--r--
10.92 KB
2023-05-02 19:45
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-key-service.php
-rw-r--r--
4.77 KB
2025-02-17 16:24
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-link-service.php
-rw-r--r--
3.38 KB
2022-09-12 19:47
编辑
下载
权限
删除
重命名
class-wp-recovery-mode.php
-rw-r--r--
11.18 KB
2025-02-23 16:11
编辑
下载
权限
删除
重命名
class-wp-rewrite.php
-rw-r--r--
62.19 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-role.php
-rw-r--r--
2.46 KB
2023-09-08 13:32
编辑
下载
权限
删除
重命名
class-wp-script-modules.php
-rw-r--r--
32.15 KB
2026-02-04 02:17
编辑
下载
权限
删除
重命名
class-wp-scripts.php
-rw-r--r--
34.05 KB
2026-02-04 02:17
编辑
下载
权限
删除
重命名
class-wp-session-tokens.php
-rw-r--r--
7.15 KB
2025-02-11 16:14
编辑
下载
权限
删除
重命名
class-wp-simplepie-file.php
-rw-r--r--
3.47 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-simplepie-sanitize-kses.php
-rw-r--r--
1.87 KB
2025-01-23 00:48
编辑
下载
权限
删除
重命名
class-wp-site.php
-rw-r--r--
7.29 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-speculation-rules.php
-rw-r--r--
7.35 KB
2025-02-19 03:32
编辑
下载
权限
删除
重命名
class-wp-styles.php
-rw-r--r--
12.54 KB
2026-02-04 02:17
编辑
下载
权限
删除
重命名
class-wp-tax-query.php
-rw-r--r--
19.12 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-term-query.php
-rw-r--r--
39.99 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-term.php
-rw-r--r--
5.17 KB
2022-09-12 19:47
编辑
下载
权限
删除
重命名
class-wp-text-diff-renderer-inline.php
-rw-r--r--
979 B
2024-02-15 00:27
编辑
下载
权限
删除
重命名
class-wp-text-diff-renderer-table.php
-rw-r--r--
18.44 KB
2025-01-23 00:48
编辑
下载
权限
删除
重命名
class-wp-textdomain-registry.php
-rw-r--r--
10.24 KB
2024-11-20 07:50
编辑
下载
权限
删除
重命名
class-wp-theme-json-data.php
-rw-r--r--
1.77 KB
2024-06-04 15:55
编辑
下载
权限
删除
重命名
class-wp-theme-json-resolver.php
-rw-r--r--
34.9 KB
2024-11-04 07:34
编辑
下载
权限
删除
重命名
class-wp-theme-json-schema.php
-rw-r--r--
7.19 KB
2024-06-06 12:02
编辑
下载
权限
删除
重命名
class-wp-theme-json.php
-rw-r--r--
160.5 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-theme.php
-rw-r--r--
64.27 KB
2025-04-08 18:18
编辑
下载
权限
删除
重命名
class-wp-token-map.php
-rw-r--r--
27.95 KB
2024-07-20 03:44
编辑
下载
权限
删除
重命名
class-wp-url-pattern-prefixer.php
-rw-r--r--
4.69 KB
2025-02-19 03:32
编辑
下载
权限
删除
重命名
class-wp-user-meta-session-tokens.php
-rw-r--r--
2.94 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-user-query.php
-rw-r--r--
43.13 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-user-request.php
-rw-r--r--
2.25 KB
2025-02-17 16:24
编辑
下载
权限
删除
重命名
class-wp-walker.php
-rw-r--r--
13.01 KB
2024-07-26 11:56
编辑
下载
权限
删除
重命名
class-wp-widget-factory.php
-rw-r--r--
3.27 KB
2022-09-12 19:47
编辑
下载
权限
删除
重命名
class-wp-widget.php
-rw-r--r--
18 KB
2024-11-02 19:01
编辑
下载
权限
删除
重命名
class-wp-xmlrpc-server.php
-rw-r--r--
210.4 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp.php
-rw-r--r--
25.86 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wpdb.php
-rw-r--r--
115.85 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class.wp-dependencies.php
-rw-r--r--
373 B
2022-09-20 18:17
编辑
下载
权限
删除
重命名
class.wp-scripts.php
-rw-r--r--
343 B
2022-09-20 18:17
编辑
下载
权限
删除
重命名
class.wp-styles.php
-rw-r--r--
338 B
2022-09-20 18:17
编辑
下载
权限
删除
重命名
comment-template.php
-rw-r--r--
100.73 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
comment.php
-rw-r--r--
130.93 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
compat-utf8.php
-rw-r--r--
19.1 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
compat.php
-rw-r--r--
17.41 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
cron.php
-rw-r--r--
41.98 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
date.php
-rw-r--r--
400 B
2022-06-17 15:20
编辑
下载
权限
删除
重命名
default-constants.php
-rw-r--r--
11.1 KB
2024-10-01 03:58
编辑
下载
权限
删除
重命名
default-filters.php
-rw-r--r--
37.02 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
default-widgets.php
-rw-r--r--
2.24 KB
2025-01-23 00:48
编辑
下载
权限
删除
重命名
deprecated.php
-rw-r--r--
188.13 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
embed-template.php
-rw-r--r--
338 B
2022-06-17 15:20
编辑
下载
权限
删除
重命名
embed.php
-rw-r--r--
38 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
error-protection.php
-rw-r--r--
4.02 KB
2023-05-02 19:45
编辑
下载
权限
删除
重命名
error_log
-rw-r--r--
57.05 KB
2026-05-14 04:43
编辑
下载
权限
删除
重命名
feed-atom-comments.php
-rw-r--r--
5.38 KB
2024-03-04 17:41
编辑
下载
权限
删除
重命名
feed-atom.php
-rw-r--r--
3.05 KB
2025-01-23 00:48
编辑
下载
权限
删除
重命名
feed-rdf.php
-rw-r--r--
2.61 KB
2020-01-29 05:45
编辑
下载
权限
删除
重命名
feed-rss.php
-rw-r--r--
1.16 KB
2020-01-29 05:45
编辑
下载
权限
删除
重命名
feed-rss2-comments.php
-rw-r--r--
4.04 KB
2024-03-04 17:41
编辑
下载
权限
删除
重命名
feed-rss2.php
-rw-r--r--
3.71 KB
2020-01-29 05:45
编辑
下载
权限
删除
重命名
feed.php
-rw-r--r--
24.6 KB
2026-02-04 02:17
编辑
下载
权限
删除
重命名
fonts.php
-rw-r--r--
9.56 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
formatting.php
-rw-r--r--
346.43 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
functions.php
-rw-r--r--
281.84 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
functions.wp-scripts.php
-rw-r--r--
14.95 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
functions.wp-styles.php
-rw-r--r--
8.44 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
general-template.php
-rw-r--r--
168.95 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
global-styles-and-settings.php
-rw-r--r--
20.71 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
http.php
-rw-r--r--
25.27 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
https-detection.php
-rw-r--r--
5.72 KB
2025-02-24 18:43
编辑
下载
权限
删除
重命名
https-migration.php
-rw-r--r--
4.63 KB
2023-07-11 02:38
编辑
下载
权限
删除
重命名
kses.php
-rw-r--r--
81.73 KB
2026-03-11 02:16
编辑
下载
权限
删除
重命名
l10n.php
-rw-r--r--
67.18 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
link-template.php
-rw-r--r--
156.36 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
load.php
-rw-r--r--
55.19 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
locale.php
-rw-r--r--
162 B
2019-10-08 21:19
编辑
下载
权限
删除
重命名
media-template.php
-rw-r--r--
61.72 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
media.php
-rw-r--r--
216.06 KB
2026-03-11 02:16
编辑
下载
权限
删除
重命名
ms-blogs.php
-rw-r--r--
25.24 KB
2025-01-23 00:48
编辑
下载
权限
删除
重命名
ms-default-constants.php
-rw-r--r--
4.81 KB
2024-06-14 00:50
编辑
下载
权限
删除
重命名
ms-default-filters.php
-rw-r--r--
6.48 KB
2023-02-24 06:23
编辑
下载
权限
删除
重命名
ms-deprecated.php
-rw-r--r--
21.25 KB
2024-04-12 21:47
编辑
下载
权限
删除
重命名
ms-files.php
-rw-r--r--
2.79 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
ms-functions.php
-rw-r--r--
89.69 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
ms-load.php
-rw-r--r--
19.42 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
ms-network.php
-rw-r--r--
3.69 KB
2023-05-02 15:26
编辑
下载
权限
删除
重命名
ms-settings.php
-rw-r--r--
4.11 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
ms-site.php
-rw-r--r--
40.74 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
nav-menu.php
-rw-r--r--
43.31 KB
2026-03-11 02:16
编辑
下载
权限
删除
重命名
pluggable-deprecated.php
-rw-r--r--
6.18 KB
2025-02-04 00:52
编辑
下载
权限
删除
重命名
pluggable.php
-rw-r--r--
124.47 KB
2026-02-04 02:17
编辑
下载
权限
删除
重命名
plugin.php
-rw-r--r--
35.65 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
post-formats.php
-rw-r--r--
6.94 KB
2024-05-27 20:29
编辑
下载
权限
删除
重命名
post-template.php
-rw-r--r--
67.04 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
post.php
-rw-r--r--
289.13 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
query.php
-rw-r--r--
36.23 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
registration.php
-rw-r--r--
200 B
2020-11-12 16:17
编辑
下载
权限
删除
重命名
rest-api.php
-rw-r--r--
98.29 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
revision.php
-rw-r--r--
30.02 KB
2025-01-28 04:07
编辑
下载
权限
删除
重命名
robots-template.php
-rw-r--r--
5.06 KB
2022-04-06 19:33
编辑
下载
权限
删除
重命名
rss-functions.php
-rw-r--r--
255 B
2020-11-17 03:52
编辑
下载
权限
删除
重命名
rss.php
-rw-r--r--
22.66 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
script-loader.php
-rw-r--r--
154.63 KB
2026-02-04 02:17
编辑
下载
权限
删除
重命名
script-modules.php
-rw-r--r--
9.68 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
shortcodes.php
-rw-r--r--
23.49 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
speculative-loading.php
-rw-r--r--
8.4 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
spl-autoload-compat.php
-rw-r--r--
441 B
2020-11-12 16:17
编辑
下载
权限
删除
重命名
style-engine.php
-rw-r--r--
7.39 KB
2024-05-03 08:47
编辑
下载
权限
删除
重命名
taxonomy.php
-rw-r--r--
172.91 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
template-canvas.php
-rw-r--r--
544 B
2023-10-01 04:22
编辑
下载
权限
删除
重命名
template-loader.php
-rw-r--r--
4.17 KB
2026-03-11 02:16
编辑
下载
权限
删除
重命名
template.php
-rw-r--r--
35.97 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
theme-i18n.json
-rw-r--r--
1.69 KB
2026-02-04 02:17
编辑
下载
权限
删除
重命名
theme-templates.php
-rw-r--r--
6.09 KB
2025-02-17 22:49
编辑
下载
权限
删除
重命名
theme.json
-rw-r--r--
8.71 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
theme.php
-rw-r--r--
131.84 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
update.php
-rw-r--r--
37.45 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
user.php
-rw-r--r--
173.89 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
utf8.php
-rw-r--r--
7.09 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
vars.php
-rw-r--r--
6.41 KB
2025-01-23 00:48
编辑
下载
权限
删除
重命名
version.php
-rw-r--r--
1.08 KB
2026-03-12 02:16
编辑
下载
权限
删除
重命名
widgets.php
-rw-r--r--
69.46 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
wp-db.php
-rw-r--r--
445 B
2022-07-22 02:45
编辑
下载
权限
删除
重命名
wp-diff.php
-rw-r--r--
799 B
2025-01-23 00:48
编辑
下载
权限
删除
重命名