Changeset 34037 for trunk/src/wp-admin/load-scripts.php
- Timestamp:
- 09/11/2015 05:03:55 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/load-scripts.php
r33734 r34037 12 12 define( 'WPINC', 'wp-includes' ); 13 13 14 /**15 * @ignore16 */17 function __() {}18 19 /**20 * @ignore21 */22 function _x() {}23 24 /**25 * @ignore26 */27 function add_filter() {}28 29 /**30 * @ignore31 */32 function esc_attr() {}33 34 /**35 * @ignore36 */37 function apply_filters() {}38 39 /**40 * @ignore41 */42 function get_option() {}43 44 /**45 * @ignore46 */47 function is_lighttpd_before_150() {}48 49 /**50 * @ignore51 */52 function add_action() {}53 54 /**55 * @ignore56 */57 function did_action() {}58 59 /**60 * @ignore61 */62 function do_action_ref_array() {}63 64 /**65 * @ignore66 */67 function get_bloginfo() {}68 69 /**70 * @ignore71 */72 function is_admin() {return true;}73 74 /**75 * @ignore76 */77 function site_url() {}78 79 /**80 * @ignore81 */82 function admin_url() {}83 84 /**85 * @ignore86 */87 function home_url() {}88 89 /**90 * @ignore91 */92 function includes_url() {}93 94 /**95 * @ignore96 */97 function wp_guess_url() {}98 99 if ( ! function_exists( 'json_encode' ) ) :100 /**101 * @ignore102 */103 function json_encode() {}104 endif;105 106 function get_file($path) {107 108 if ( function_exists('realpath') )109 $path = realpath($path);110 111 if ( ! $path || ! @is_file($path) )112 return '';113 114 return @file_get_contents($path);115 }116 117 14 $load = $_GET['load']; 118 15 if ( is_array( $load ) ) … … 125 22 exit; 126 23 127 require(ABSPATH . WPINC . '/script-loader.php'); 128 require(ABSPATH . WPINC . '/version.php'); 24 require( ABSPATH . 'wp-admin/includes/noop.php' ); 25 require( ABSPATH . WPINC . '/script-loader.php' ); 26 require( ABSPATH . WPINC . '/version.php' ); 129 27 130 28 $compress = ( isset($_GET['c']) && $_GET['c'] );
Note: See TracChangeset
for help on using the changeset viewer.