Changeset 34912 for trunk/src/wp-admin/includes/update.php
- Timestamp:
- 10/07/2015 05:11:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update.php
r34778 r34912 30 30 function get_core_updates( $options = array() ) { 31 31 $options = array_merge( array( 'available' => true, 'dismissed' => false ), $options ); 32 $dismissed = get_ network_option( 'dismissed_update_core' );32 $dismissed = get_site_option( 'dismissed_update_core' ); 33 33 34 34 if ( ! is_array( $dismissed ) ) … … 135 135 */ 136 136 function dismiss_core_update( $update ) { 137 $dismissed = get_ network_option( 'dismissed_update_core' );137 $dismissed = get_site_option( 'dismissed_update_core' ); 138 138 $dismissed[ $update->current . '|' . $update->locale ] = true; 139 return update_ network_option( 'dismissed_update_core', $dismissed );139 return update_site_option( 'dismissed_update_core', $dismissed ); 140 140 } 141 141 … … 147 147 */ 148 148 function undismiss_core_update( $version, $locale ) { 149 $dismissed = get_ network_option( 'dismissed_update_core' );149 $dismissed = get_site_option( 'dismissed_update_core' ); 150 150 $key = $version . '|' . $locale; 151 151 … … 154 154 155 155 unset( $dismissed[$key] ); 156 return update_ network_option( 'dismissed_update_core', $dismissed );156 return update_site_option( 'dismissed_update_core', $dismissed ); 157 157 } 158 158 … … 479 479 $nag = isset( $upgrading ); 480 480 if ( ! $nag ) { 481 $failed = get_ network_option( 'auto_core_update_failed' );481 $failed = get_site_option( 'auto_core_update_failed' ); 482 482 /* 483 483 * If an update failed critically, we may have copied over version.php but not other files.
Note: See TracChangeset
for help on using the changeset viewer.