noop.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. * @ignore
  11. */
  12. function __() {}
  13. /**
  14. * @ignore
  15. */
  16. function _x() {}
  17. /**
  18. * @ignore
  19. */
  20. function add_filter() {}
  21. /**
  22. * @ignore
  23. */
  24. function esc_attr() {}
  25. /**
  26. * @ignore
  27. */
  28. function apply_filters() {}
  29. /**
  30. * @ignore
  31. */
  32. function get_option() {}
  33. /**
  34. * @ignore
  35. */
  36. function is_lighttpd_before_150() {}
  37. /**
  38. * @ignore
  39. */
  40. function add_action() {}
  41. /**
  42. * @ignore
  43. */
  44. function did_action() {}
  45. /**
  46. * @ignore
  47. */
  48. function do_action_ref_array() {}
  49. /**
  50. * @ignore
  51. */
  52. function get_bloginfo() {}
  53. /**
  54. * @ignore
  55. */
  56. function is_admin() {
  57. return true;}
  58. /**
  59. * @ignore
  60. */
  61. function site_url() {}
  62. /**
  63. * @ignore
  64. */
  65. function admin_url() {}
  66. /**
  67. * @ignore
  68. */
  69. function home_url() {}
  70. /**
  71. * @ignore
  72. */
  73. function includes_url() {}
  74. /**
  75. * @ignore
  76. */
  77. function wp_guess_url() {}
  78. function get_file( $path ) {
  79. $path = realpath( $path );
  80. if ( ! $path || ! @is_file( $path ) ) {
  81. return '';
  82. }
  83. return @file_get_contents( $path );
  84. }