Ticket #27715: 27715.2.diff
| File 27715.2.diff, 1.5 KB (added by , 13 years ago) |
|---|
-
wp-includes/functions.php
1115 1115 $output .= "Disallow: $path/wp-includes/\n"; 1116 1116 } 1117 1117 1118 /** 1119 * Filter the contents of robots.txt as returned by do_robots(). 1120 * 1121 * @since 3.0.0 1122 * 1123 * @param string $output Rules for the robots.txt file. 1124 * @param int $public Search engine visibility - 0 or 1. 1125 */ 1118 1126 echo apply_filters('robots_txt', $output, $public); 1119 1127 } 1120 1128 … … 4011 4019 * @return bool true|false 4012 4020 */ 4013 4021 function wp_checkdate( $month, $day, $year, $source_date ) { 4022 /** 4023 * Filter the wp_checkdate arguments. 4024 * 4025 * @since 3.5.0 4026 * 4027 * @param boolean The validity of the date as returned by checkdate(). 4028 * @param string The supplied source date. 4029 */ 4014 4030 return apply_filters( 'wp_checkdate', checkdate( $month, $day, $year ), $source_date ); 4015 4031 } 4016 4032 … … 4036 4052 $hidden = array( 'update', 'update-network', 'update-core', 'update-core-network', 'upgrade', 'upgrade-network', 'network' ); 4037 4053 $show = ! in_array( $screen->id, $hidden ); 4038 4054 4055 /** 4056 * Filter whether to load the auth check script/style or not. 4057 * 4058 * @since 3.6.0 4059 * 4060 * @param boolean $show Whether the script/style is being loaded. 4061 * @param object $screen The object returned by get_current_screen(). 4062 */ 4039 4063 if ( apply_filters( 'wp_auth_check_load', $show, $screen ) ) { 4040 4064 wp_enqueue_style( 'wp-auth-check' ); 4041 4065 wp_enqueue_script( 'wp-auth-check' );