WordPress.org

Make WordPress Core

Ticket #44910: load.php.diff

File load.php.diff, 721 bytes (added by mt8.biz, 22 months ago)
  • load.php

     
    11731173}
    11741174
    11751175/**
     1176 * Determines whether the current request is a WordPress autosave request.
     1177 *
     1178 * @since
     1179 *
     1180 * @return bool True if it's a WordPress autosave request, false otherwise.
     1181 */
     1182function wp_doing_autosave() {
     1183        /**
     1184         * Filters whether the current request is a WordPress autosave request.
     1185         *
     1186         * @since
     1187         *
     1188         * @param bool wp_doing_autosave Whether the current request is a WordPress autosave request.
     1189         */
     1190        return apply_filters( 'wp_doing_autosave', defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE );
     1191}
     1192
     1193/**
    11761194 * Check whether variable is a WordPress Error.
    11771195 *
    11781196 * Returns true if $thing is an object of the WP_Error class.