Changeset 28479
- Timestamp:
- 05/18/2014 08:51:44 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r28478 r28479 39 39 40 40 if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { 41 include ABSPATH . 'wp-admin/includes/ajax-actions.php';41 include( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); 42 42 43 43 send_nosniff_header(); -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r28468 r28479 1394 1394 global $wp_filesystem; 1395 1395 1396 include ABSPATH . WPINC . '/version.php'; // $wp_version;1396 include( ABSPATH . WPINC . '/version.php' ); // $wp_version; 1397 1397 1398 1398 $start_time = time(); … … 1538 1538 // Determines if this WordPress Core version should update to $offered_ver or not 1539 1539 static function should_update_to_version( $offered_ver /* x.y.z */ ) { 1540 include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z1540 include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z 1541 1541 1542 1542 $current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y -
trunk/src/wp-admin/includes/deprecated.php
r27261 r28479 1071 1071 add_filter('update_feedback', $feedback); 1072 1072 1073 include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';1073 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 1074 1074 $upgrader = new Core_Upgrader(); 1075 1075 return $upgrader->upgrade($current); … … 1094 1094 add_filter('update_feedback', $feedback); 1095 1095 1096 include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';1096 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 1097 1097 $upgrader = new Plugin_Upgrader(); 1098 1098 return $upgrader->upgrade($plugin); … … 1116 1116 add_filter('update_feedback', $feedback); 1117 1117 1118 include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';1118 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 1119 1119 $upgrader = new Theme_Upgrader(); 1120 1120 return $upgrader->upgrade($theme); -
trunk/src/wp-admin/includes/import.php
r27374 r28479 120 120 */ 121 121 function wp_get_popular_importers() { 122 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version122 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version 123 123 124 124 $locale = get_locale(); -
trunk/src/wp-admin/includes/plugin.php
r28256 r28479 939 939 define('WP_UNINSTALL_PLUGIN', $file); 940 940 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . dirname( $file ) ); 941 include WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php';941 include( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' ); 942 942 943 943 return true; … … 951 951 952 952 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); 953 include WP_PLUGIN_DIR . '/' . $file;953 include( WP_PLUGIN_DIR . '/' . $file ); 954 954 955 955 add_action( 'uninstall_' . $file, $callable ); -
trunk/src/wp-admin/includes/update.php
r28304 r28479 399 399 400 400 function maintenance_nag() { 401 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version401 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version 402 402 global $upgrading; 403 403 $nag = isset( $upgrading ); -
trunk/src/wp-admin/network.php
r27604 r28479 154 154 echo '<div class="error"><p><strong>' . __('ERROR:') . '</strong> ' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a network.' ) . '</p></div>'; 155 155 echo '</div>'; 156 include 156 include( ABSPATH . 'wp-admin/admin-footer.php' ); 157 157 die(); 158 158 } -
trunk/src/wp-admin/user-edit.php
r27743 r28479 188 188 wp_die(__('You do not have permission to edit this user.')); 189 189 190 include 190 include(ABSPATH . 'wp-admin/admin-header.php'); 191 191 ?> 192 192 -
trunk/src/wp-includes/class-simplepie.php
r22366 r28479 27 27 28 28 $file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php'; 29 include $file;29 include( $file ); 30 30 } 31 31 -
trunk/src/wp-includes/script-loader.php
r28336 r28479 49 49 */ 50 50 function wp_default_scripts( &$scripts ) { 51 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version51 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version 52 52 53 53 $develop_src = false !== strpos( $wp_version, '-src' ); … … 558 558 */ 559 559 function wp_default_styles( &$styles ) { 560 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version560 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version 561 561 562 562 if ( ! defined( 'SCRIPT_DEBUG' ) ) -
trunk/src/wp-includes/update.php
r28145 r28479 26 26 27 27 global $wpdb, $wp_local_package; 28 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version28 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version 29 29 $php_version = phpversion(); 30 30 … … 184 184 */ 185 185 function wp_update_plugins( $extra_stats = array() ) { 186 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version186 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version 187 187 188 188 if ( defined('WP_INSTALLING') ) … … 323 323 */ 324 324 function wp_update_themes( $extra_stats = array() ) { 325 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version325 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version 326 326 327 327 if ( defined( 'WP_INSTALLING' ) ) … … 551 551 552 552 function _maybe_update_core() { 553 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version553 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version 554 554 555 555 $current = get_site_transient( 'update_core' );
Note: See TracChangeset
for help on using the changeset viewer.