WordPress.org

Make WordPress Core

Ticket #27715: 27715.2.diff

File 27715.2.diff, 1.5 KB (added by jesin, 5 years ago)

Corrected version of 27715.diff

  • wp-includes/functions.php

     
    11151115                $output .= "Disallow: $path/wp-includes/\n";
    11161116        }
    11171117
     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         */
    11181126        echo apply_filters('robots_txt', $output, $public);
    11191127}
    11201128
     
    40114019 * @return bool true|false
    40124020 */
    40134021function 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         */
    40144030        return apply_filters( 'wp_checkdate', checkdate( $month, $day, $year ), $source_date );
    40154031}
    40164032
     
    40364052        $hidden = array( 'update', 'update-network', 'update-core', 'update-core-network', 'upgrade', 'upgrade-network', 'network' );
    40374053        $show = ! in_array( $screen->id, $hidden );
    40384054
     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         */
    40394063        if ( apply_filters( 'wp_auth_check_load', $show, $screen ) ) {
    40404064                wp_enqueue_style( 'wp-auth-check' );
    40414065                wp_enqueue_script( 'wp-auth-check' );