Changeset 34037
- Timestamp:
- 09/11/2015 05:03:55 AM (9 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 1 added
- 2 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'] ); -
trunk/src/wp-admin/load-styles.php
r33734 r34037 12 12 define( 'WPINC', 'wp-includes' ); 13 13 14 /** 15 * @ignore 16 */ 17 function __() {} 18 19 /** 20 * @ignore 21 */ 22 function _x() {} 23 24 /** 25 * @ignore 26 */ 27 function add_filter() {} 28 29 /** 30 * @ignore 31 */ 32 function esc_attr() {} 33 34 /** 35 * @ignore 36 */ 37 function apply_filters() {} 38 39 /** 40 * @ignore 41 */ 42 function get_option() {} 43 44 /** 45 * @ignore 46 */ 47 function is_lighttpd_before_150() {} 48 49 /** 50 * @ignore 51 */ 52 function add_action() {} 53 54 /** 55 * @ignore 56 */ 57 function do_action_ref_array() {} 58 59 /** 60 * @ignore 61 */ 62 function get_bloginfo() {} 63 64 /** 65 * @ignore 66 */ 67 function is_admin() {return true;} 68 69 /** 70 * @ignore 71 */ 72 function site_url() {} 73 74 /** 75 * @ignore 76 */ 77 function admin_url() {} 78 79 /** 80 * @ignore 81 */ 82 function wp_guess_url() {} 83 84 /** 85 * 86 * @param string $path 87 * @return string 88 */ 89 function get_file($path) { 90 91 if ( function_exists('realpath') ) 92 $path = realpath($path); 93 94 if ( ! $path || ! @is_file($path) ) 95 return ''; 96 97 return @file_get_contents($path); 98 } 99 14 require( ABSPATH . 'wp-admin/includes/noop.php' ); 100 15 require( ABSPATH . WPINC . '/script-loader.php' ); 101 16 require( ABSPATH . WPINC . '/version.php' );
Note: See TracChangeset
for help on using the changeset viewer.