home *** CD-ROM | disk | FTP | other *** search
/ HTML Examples / WP.iso / wordpress / wp-admin / includes / noop.php < prev    next >
Encoding:
PHP Script  |  2017-01-25  |  1.2 KB  |  113 lines

  1. <?php
  2. /**
  3.  * Noop functions for load-scripts.php and load-styles.php.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Administration
  7.  * @since 4.4.0
  8.  */
  9.  
  10. /**
  11.  * @ignore
  12.  */
  13. function __() {}
  14.  
  15. /**
  16.  * @ignore
  17.  */
  18. function _x() {}
  19.  
  20. /**
  21.  * @ignore
  22.  */
  23. function add_filter() {}
  24.  
  25. /**
  26.  * @ignore
  27.  */
  28. function esc_attr() {}
  29.  
  30. /**
  31.  * @ignore
  32.  */
  33. function apply_filters() {}
  34.  
  35. /**
  36.  * @ignore
  37.  */
  38. function get_option() {}
  39.  
  40. /**
  41.  * @ignore
  42.  */
  43. function is_lighttpd_before_150() {}
  44.  
  45. /**
  46.  * @ignore
  47.  */
  48. function add_action() {}
  49.  
  50. /**
  51.  * @ignore
  52.  */
  53. function did_action() {}
  54.  
  55. /**
  56.  * @ignore
  57.  */
  58. function do_action_ref_array() {}
  59.  
  60. /**
  61.  * @ignore
  62.  */
  63. function get_bloginfo() {}
  64.  
  65. /**
  66.  * @ignore
  67.  */
  68. function is_admin() {return true;}
  69.  
  70. /**
  71.  * @ignore
  72.  */
  73. function site_url() {}
  74.  
  75. /**
  76.  * @ignore
  77.  */
  78. function admin_url() {}
  79.  
  80. /**
  81.  * @ignore
  82.  */
  83. function home_url() {}
  84.  
  85. /**
  86.  * @ignore
  87.  */
  88. function includes_url() {}
  89.  
  90. /**
  91.  * @ignore
  92.  */
  93. function wp_guess_url() {}
  94.  
  95. if ( ! function_exists( 'json_encode' ) ) :
  96. /**
  97.  * @ignore
  98.  */
  99. function json_encode() {}
  100. endif;
  101.  
  102. function get_file( $path ) {
  103.  
  104.     if ( function_exists('realpath') ) {
  105.         $path = realpath( $path );
  106.     }
  107.  
  108.     if ( ! $path || ! @is_file( $path ) ) {
  109.         return '';
  110.     }
  111.  
  112.     return @file_get_contents( $path );
  113. }