wp/wp-admin/includes/noop.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 21 48c4eec2b7e6
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
    91 /**
    91 /**
    92  * @ignore
    92  * @ignore
    93  */
    93  */
    94 function wp_guess_url() {}
    94 function wp_guess_url() {}
    95 
    95 
    96 if ( ! function_exists( 'json_encode' ) ) :
       
    97 	/**
       
    98 	 * @ignore
       
    99 	 */
       
   100 	function json_encode() {}
       
   101 endif;
       
   102 
       
   103 function get_file( $path ) {
    96 function get_file( $path ) {
   104 
    97 
   105 	if ( function_exists( 'realpath' ) ) {
    98 	$path = realpath( $path );
   106 		$path = realpath( $path );
       
   107 	}
       
   108 
    99 
   109 	if ( ! $path || ! @is_file( $path ) ) {
   100 	if ( ! $path || ! @is_file( $path ) ) {
   110 		return '';
   101 		return '';
   111 	}
   102 	}
   112 
   103