Make WordPress Core

Ticket #58076: 58076.4.patch

File 58076.4.patch, 2.8 KB (added by viralsampat, 23 months ago)

I have checked above mentioned issue and founds few files. Here, I have added its patch.

  • src/wp-includes/block-template-utils.php

    diff --git src/wp-includes/block-template-utils.php src/wp-includes/block-template-utils.php
    index d2795612ed..6c50cf27d7 100644
    function wp_generate_block_templates_export_file() { 
    12691269
    12701270        $theme_json_raw = $tree->get_data();
    12711271        // If a version is defined, add a schema.
     1272        /**
     1273         * @global $wp_version.
     1274         */
    12721275        if ( $theme_json_raw['version'] ) {
    12731276                global $wp_version;
    12741277                $theme_json_version = 'wp/' . substr( $wp_version, 0, 3 );
  • src/wp-includes/class-walker-comment.php

    diff --git src/wp-includes/class-walker-comment.php src/wp-includes/class-walker-comment.php
    index dfc8ccd39d..b1d5c7865c 100644
    class Walker_Comment extends Walker { 
    4646         * @since 2.7.0
    4747         *
    4848         * @see Walker::start_lvl()
    49          * @global int $comment_depth
    5049         *
    5150         * @param string $output Used to append additional content (passed by reference).
    5251         * @param int    $depth  Optional. Depth of the current comment. Default 0.
    class Walker_Comment extends Walker { 
    7473         * @since 2.7.0
    7574         *
    7675         * @see Walker::end_lvl()
    77          * @global int $comment_depth
    7876         *
    7977         * @param string $output Used to append additional content (passed by reference).
    8078         * @param int    $depth  Optional. Depth of the current comment. Default 0.
    class Walker_Comment extends Walker { 
    162160         *
    163161         * @see Walker::start_el()
    164162         * @see wp_list_comments()
    165          * @global int        $comment_depth
    166163         * @global WP_Comment $comment       Global comment object.
    167164         *
    168165         * @param string     $output            Used to append additional content. Passed by reference.
  • src/wp-includes/user.php

    diff --git src/wp-includes/user.php src/wp-includes/user.php
    index 9c17d1583e..e5834daae5 100644
    function wp_destroy_all_sessions() { 
    35073507 *
    35083508 * @param int|null $site_id Optional. The site ID to get users with no role for. Defaults to the current site.
    35093509 * @return string[] Array of user IDs as strings.
     3510 * @global wpdb         $wpdb       WordPress database abstraction object.
    35103511 */
    35113512function wp_get_users_with_no_role( $site_id = null ) {
    35123513        global $wpdb;
    All at ###SITENAME### 
    47904791 *
    47914792 * @param int $request_id Request ID.
    47924793 * @return string Confirmation key.
     4794 * @global $wp_hasher.
    47934795 */
    47944796function wp_generate_user_request_key( $request_id ) {
    47954797        global $wp_hasher;
    function wp_generate_user_request_key( $request_id ) { 
    48224824 * @param string $request_id ID of the request being confirmed.
    48234825 * @param string $key        Provided key to validate.
    48244826 * @return true|WP_Error True on success, WP_Error on failure.
     4827 * @global $wp_hasher.
    48254828 */
    48264829function wp_validate_user_request_key( $request_id, $key ) {
    48274830        global $wp_hasher;