Make WordPress Core

Changeset 25893


Ignore:
Timestamp:
10/24/2013 06:17:41 PM (13 years ago)
Author:
nacin
Message:

Confirm delete_site_option() exists before calling it during an update.

This function won't yet exist when updating from 2.7 [sic].

fixes #25682 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update-core.php

    r25871 r25893  
    895895
    896896    // Clear the option that blocks auto updates after failures, now that we've been successful.
    897     delete_site_option( 'auto_core_update_failed' );
     897    if ( function_exists( 'delete_site_option' ) )
     898        delete_site_option( 'auto_core_update_failed' );
    898899
    899900    return $wp_version;
Note: See TracChangeset for help on using the changeset viewer.