Make WordPress Core

Ticket #62437: 62437.patch

File 62437.patch, 18.2 KB (added by viralsampat, 16 months ago)

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

  • src/index.php

    diff --git src/index.php src/index.php
    index 9762828dd4..db401028ad 100644
     
    44 * Note: this file exists only to remind developers to build the assets.
    55 * For the real index.php that gets built and boots WordPress,
    66 * please refer to _index.php.
     7 *
     8 * @package WordPress
    79 */
    810
    911/** Define ABSPATH as this file's directory */
  • src/wp-admin/includes/class-wp-filesystem-ssh2.php

    diff --git src/wp-admin/includes/class-wp-filesystem-ssh2.php src/wp-admin/includes/class-wp-filesystem-ssh2.php
    index 540ecb54fa..ad8d95690c 100644
     
    3333 * @package WordPress
    3434 * @subpackage Filesystem
    3535 */
     36
    3637class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
    3738
    3839        /**
  • src/wp-admin/includes/class-wp-importer.php

    diff --git src/wp-admin/includes/class-wp-importer.php src/wp-admin/includes/class-wp-importer.php
    index 4804c888b2..e51b4550c0 100644
     
    22/**
    33 * WP_Importer base class
    44 */
     5
    56#[AllowDynamicProperties]
    67class WP_Importer {
    78        /**
  • src/wp-admin/includes/translation-install.php

    diff --git src/wp-admin/includes/translation-install.php src/wp-admin/includes/translation-install.php
    index dc7cb89a05..7b01ea58e1 100644
     
    66 * @subpackage Administration
    77 */
    88
    9 
    109/**
    1110 * Retrieve translations from WordPress Translation API.
    1211 *
  • src/wp-admin/load-scripts.php

    diff --git src/wp-admin/load-scripts.php src/wp-admin/load-scripts.php
    index 5675b86570..8562ceef94 100644
     
    11<?php
    2 
    32/*
    43 * Disable error reporting.
    54 *
    65 * Set this to error_reporting( -1 ) for debugging.
    76 */
     7
    88error_reporting( 0 );
    99
    1010// Set ABSPATH for execution.
  • src/wp-admin/load-styles.php

    diff --git src/wp-admin/load-styles.php src/wp-admin/load-styles.php
    index ea3aab5b74..ae12650718 100644
     
    11<?php
    2 
    32/*
    43 * Disable error reporting.
    54 *
    65 * Set this to error_reporting( -1 ) for debugging.
    76 */
     7
    88error_reporting( 0 );
    99
    1010// Set ABSPATH for execution.
  • src/wp-admin/maint/repair.php

    diff --git src/wp-admin/maint/repair.php src/wp-admin/maint/repair.php
    index 2399f766be..f9db9d0feb 100644
     
    55 * @package WordPress
    66 * @subpackage Database
    77 */
     8
    89define( 'WP_REPAIRING', true );
    910
    1011require_once dirname( dirname( __DIR__ ) ) . '/wp-load.php';
  • src/wp-admin/moderation.php

    diff --git src/wp-admin/moderation.php src/wp-admin/moderation.php
    index f52ff79475..886715a616 100644
     
    77 * @package WordPress
    88 * @subpackage Administration
    99 */
     10
    1011require_once dirname( __DIR__ ) . '/wp-load.php';
    1112wp_redirect( admin_url( 'edit-comments.php?comment_status=moderated' ) );
    1213exit;
  • src/wp-admin/options-discussion.php

    diff --git src/wp-admin/options-discussion.php src/wp-admin/options-discussion.php
    index b83d822f2f..83e46a72ca 100644
     
    55 * @package WordPress
    66 * @subpackage Administration
    77 */
     8
    89/** WordPress Administration Bootstrap */
    910require_once __DIR__ . '/admin.php';
    1011
  • src/wp-admin/plugin-install.php

    diff --git src/wp-admin/plugin-install.php src/wp-admin/plugin-install.php
    index 0e1a76c3a6..8547af6b50 100644
     
    55 * @package WordPress
    66 * @subpackage Administration
    77 */
     8
    89// TODO: Route this page via a specific iframe handler instead of the do_action below.
    910if ( ! defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-information' === $_GET['tab'] ) ) {
    1011        define( 'IFRAME_REQUEST', true );
  • src/wp-includes/IXR/class-IXR-base64.php

    diff --git src/wp-includes/IXR/class-IXR-base64.php src/wp-includes/IXR/class-IXR-base64.php
    index 910f81b199..bd34112ec9 100644
     
    66 * @package IXR
    77 * @since 1.5.0
    88 */
     9
    910class IXR_Base64
    1011{
    1112    var $data;
  • src/wp-includes/IXR/class-IXR-client.php

    diff --git src/wp-includes/IXR/class-IXR-client.php src/wp-includes/IXR/class-IXR-client.php
    index 2072f7c9c2..18d33bacf2 100644
     
    77 * @since 1.5.0
    88 *
    99 */
     10
    1011class IXR_Client
    1112{
    1213    var $server;
  • src/wp-includes/IXR/class-IXR-clientmulticall.php

    diff --git src/wp-includes/IXR/class-IXR-clientmulticall.php src/wp-includes/IXR/class-IXR-clientmulticall.php
    index d7aa67b2d5..8251279bda 100644
     
    55 * @package IXR
    66 * @since 1.5.0
    77 */
     8
    89class IXR_ClientMulticall extends IXR_Client
    910{
    1011    var $calls = array();
  • src/wp-includes/IXR/class-IXR-date.php

    diff --git src/wp-includes/IXR/class-IXR-date.php src/wp-includes/IXR/class-IXR-date.php
    index fc80cda4a1..497d497917 100644
     
    66 * @package IXR
    77 * @since 1.5.0
    88 */
     9
    910class IXR_Date {
    1011    var $year;
    1112    var $month;
  • src/wp-includes/IXR/class-IXR-error.php

    diff --git src/wp-includes/IXR/class-IXR-error.php src/wp-includes/IXR/class-IXR-error.php
    index 660f7d1091..b8db5bd5a9 100644
     
    66 * @package IXR
    77 * @since 1.5.0
    88 */
     9
    910class IXR_Error
    1011{
    1112    var $code;
  • src/wp-includes/IXR/class-IXR-introspectionserver.php

    diff --git src/wp-includes/IXR/class-IXR-introspectionserver.php src/wp-includes/IXR/class-IXR-introspectionserver.php
    index 5628d81caa..25f2f66ca4 100644
     
    66 * @package IXR
    77 * @since 1.5.0
    88 */
     9
    910class IXR_IntrospectionServer extends IXR_Server
    1011{
    1112    var $signatures;
  • src/wp-includes/IXR/class-IXR-message.php

    diff --git src/wp-includes/IXR/class-IXR-message.php src/wp-includes/IXR/class-IXR-message.php
    index 6c1279e69c..1c60f6396b 100644
     
    77 * @since 1.5.0
    88 *
    99 */
     10
    1011class IXR_Message
    1112{
    1213    var $message     = false;
  • src/wp-includes/IXR/class-IXR-request.php

    diff --git src/wp-includes/IXR/class-IXR-request.php src/wp-includes/IXR/class-IXR-request.php
    index b00687ba68..4023801122 100644
     
    66 * @package IXR
    77 * @since 1.5.0
    88 */
     9
    910class IXR_Request
    1011{
    1112    var $method;
  • src/wp-includes/IXR/class-IXR-server.php

    diff --git src/wp-includes/IXR/class-IXR-server.php src/wp-includes/IXR/class-IXR-server.php
    index 2ca657b2d4..bd451d99ac 100644
     
    66 * @package IXR
    77 * @since 1.5.0
    88 */
     9
    910class IXR_Server
    1011{
    1112    var $data;
  • src/wp-includes/IXR/class-IXR-value.php

    diff --git src/wp-includes/IXR/class-IXR-value.php src/wp-includes/IXR/class-IXR-value.php
    index 0fd878bcac..13b960d719 100644
     
    55 * @package IXR
    66 * @since 1.5.0
    77 */
     8
    89class IXR_Value {
    910    var $data;
    1011    var $type;
  • src/wp-includes/Requests/IDNAEncoder.php

    diff --git src/wp-includes/Requests/IDNAEncoder.php src/wp-includes/Requests/IDNAEncoder.php
    index 881142935b..6871ff0741 100644
     
    1010 * @see https://tools.ietf.org/html/rfc3490 IDNA specification
    1111 * @see https://tools.ietf.org/html/rfc3492 Punycode/Bootstrap specification
    1212 */
     13
    1314class Requests_IDNAEncoder {
    1415        /**
    1516         * ACE prefix used for IDNA
  • src/wp-includes/Text/Diff.php

    diff --git src/wp-includes/Text/Diff.php src/wp-includes/Text/Diff.php
    index 6f76278c5a..c2fd37173a 100644
     
    1515 * @package Text_Diff
    1616 * @author  Geoffrey T. Dairiki <dairiki@dairiki.org>
    1717 */
     18
    1819class Text_Diff {
    1920
    2021    /**
  • src/wp-includes/Text/Diff/Engine/native.php

    diff --git src/wp-includes/Text/Diff/Engine/native.php src/wp-includes/Text/Diff/Engine/native.php
    index 5824329b7f..751c85fc3e 100644
     
    2626 * @author  Geoffrey T. Dairiki <dairiki@dairiki.org>
    2727 * @package Text_Diff
    2828 */
     29
    2930class Text_Diff_Engine_native {
    3031
    3132    function diff($from_lines, $to_lines)
  • src/wp-includes/Text/Diff/Engine/shell.php

    diff --git src/wp-includes/Text/Diff/Engine/shell.php src/wp-includes/Text/Diff/Engine/shell.php
    index a2ccc70db8..673f19fe8a 100644
     
    1414 * @package Text_Diff
    1515 * @since   0.3.0
    1616 */
     17
    1718class Text_Diff_Engine_shell {
    1819
    1920    /**
  • src/wp-includes/Text/Diff/Engine/xdiff.php

    diff --git src/wp-includes/Text/Diff/Engine/xdiff.php src/wp-includes/Text/Diff/Engine/xdiff.php
    index 02ce848078..8f012b4ed4 100644
     
    1313 * @author  Jon Parise <jon@horde.org>
    1414 * @package Text_Diff
    1515 */
     16
    1617class Text_Diff_Engine_xdiff {
    1718
    1819    /**
  • src/wp-includes/class-phpmailer.php

    diff --git src/wp-includes/class-phpmailer.php src/wp-includes/class-phpmailer.php
    index fe054f6879..b67a5e286b 100644
     
    33/**
    44 * The PHPMailer class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
    55 */
     6
    67if ( function_exists( '_deprecated_file' ) ) {
    78        _deprecated_file(
    89                basename( __FILE__ ),
  • src/wp-includes/class-smtp.php

    diff --git src/wp-includes/class-smtp.php src/wp-includes/class-smtp.php
    index 524e655250..6898f2a854 100644
     
    11<?php
    2 
    32/**
    43 * The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
    54 */
     5
    66_deprecated_file(
    77        basename( __FILE__ ),
    88        '5.5.0',
  • src/wp-includes/class-snoopy.php

    diff --git src/wp-includes/class-snoopy.php src/wp-includes/class-snoopy.php
    index fb6857c525..693b234b16 100644
     
    33/**
    44 * Deprecated. Use WP_HTTP (http.php) instead.
    55 */
     6
    67_deprecated_file( basename( __FILE__ ), '3.0.0', WPINC . '/http.php' );
    78
    89if ( ! class_exists( 'Snoopy', false ) ) :
  • src/wp-includes/class-wp-ajax-response.php

    diff --git src/wp-includes/class-wp-ajax-response.php src/wp-includes/class-wp-ajax-response.php
    index fb90d2ddac..b5952666e1 100644
     
    55 * @package WordPress
    66 * @since 2.1.0
    77 */
     8
    89#[AllowDynamicProperties]
    910class WP_Ajax_Response {
    1011        /**
  • src/wp-includes/class-wp-embed.php

    diff --git src/wp-includes/class-wp-embed.php src/wp-includes/class-wp-embed.php
    index 8ce3483228..9992b14a31 100644
     
    66 * @subpackage Embed
    77 * @since 2.9.0
    88 */
     9
    910#[AllowDynamicProperties]
    1011class WP_Embed {
    1112        public $handlers = array();
  • src/wp-includes/class-wp-http-ixr-client.php

    diff --git src/wp-includes/class-wp-http-ixr-client.php src/wp-includes/class-wp-http-ixr-client.php
    index d45ca150eb..3cfcc61db5 100644
     
    55 * @package WordPress
    66 * @since 3.1.0
    77 */
     8
    89#[AllowDynamicProperties]
    910class WP_HTTP_IXR_Client extends IXR_Client {
    1011        public $scheme;
  • src/wp-includes/class-wp-theme.php

    diff --git src/wp-includes/class-wp-theme.php src/wp-includes/class-wp-theme.php
    index f95f49e205..a26ee9e7e5 100644
     
    66 * @subpackage Theme
    77 * @since 3.4.0
    88 */
     9
    910#[AllowDynamicProperties]
    1011final class WP_Theme implements ArrayAccess {
    1112
  • src/wp-includes/class-wp-user-request.php

    diff --git src/wp-includes/class-wp-user-request.php src/wp-includes/class-wp-user-request.php
    index 8c66dcdf81..f774d06967 100644
     
    66 *
    77 * @since 4.9.6
    88 */
     9
    910#[AllowDynamicProperties]
    1011final class WP_User_Request {
    1112        /**
  • src/wp-includes/class-wp-walker.php

    diff --git src/wp-includes/class-wp-walker.php src/wp-includes/class-wp-walker.php
    index f7f4715ed1..ed15f63d05 100644
     
    1111 * @package WordPress
    1212 * @abstract
    1313 */
     14
    1415#[AllowDynamicProperties]
    1516class Walker {
    1617        /**
  • src/wp-includes/class-wp.php

    diff --git src/wp-includes/class-wp.php src/wp-includes/class-wp.php
    index 67985c147b..13cfd98313 100644
     
    55 * @package WordPress
    66 * @since 2.0.0
    77 */
     8
    89#[AllowDynamicProperties]
    910class WP {
    1011        /**
  • src/wp-includes/pomo/plural-forms.php

    diff --git src/wp-includes/pomo/plural-forms.php src/wp-includes/pomo/plural-forms.php
    index b072bfadac..5c68c14120 100644
     
    55 *
    66 * @since 4.9.0
    77 */
     8
    89if ( ! class_exists( 'Plural_Forms', false ) ) :
    910        #[AllowDynamicProperties]
    1011        class Plural_Forms {
  • src/wp-includes/sodium_compat/autoload-php7.php

    diff --git src/wp-includes/sodium_compat/autoload-php7.php src/wp-includes/sodium_compat/autoload-php7.php
    index 482486043b..18b83ff9c6 100644
     
    22/*
    33 This file should only ever be loaded on PHP 7+
    44 */
     5
    56if (PHP_VERSION_ID < 70000) {
    67    return;
    78}
  • src/wp-includes/sodium_compat/src/Core/Base64/Common.php

    diff --git src/wp-includes/sodium_compat/src/Core/Base64/Common.php src/wp-includes/sodium_compat/src/Core/Base64/Common.php
    index 94b2e8f33a..15bd8dac87 100644
     
    1010 * doesn't support late static binding, and we have no better workaround
    1111 * available that won't break PHP 7+. Therefore, we're forced to duplicate code.
    1212 */
     13
    1314abstract class ParagonIE_Sodium_Core_Base64_Common
    1415{
    1516    /**
  • src/wp-includes/sodium_compat/src/Core/Base64/Original.php

    diff --git src/wp-includes/sodium_compat/src/Core/Base64/Original.php src/wp-includes/sodium_compat/src/Core/Base64/Original.php
    index dc939eeafb..1bcee55e70 100644
     
    66 *  Copyright (c) 2016 - 2018 Paragon Initiative Enterprises.
    77 *  Copyright (c) 2014 Steve "Sc00bz" Thomas (steve at tobtu dot com)
    88 */
     9
    910class ParagonIE_Sodium_Core_Base64_Original
    1011{
    1112    // COPY ParagonIE_Sodium_Core_Base64_Common STARTING HERE
  • src/wp-includes/sodium_compat/src/Core/Base64/UrlSafe.php

    diff --git src/wp-includes/sodium_compat/src/Core/Base64/UrlSafe.php src/wp-includes/sodium_compat/src/Core/Base64/UrlSafe.php
    index 64bf53b858..d647e4e639 100644
     
    66 *  Copyright (c) 2016 - 2018 Paragon Initiative Enterprises.
    77 *  Copyright (c) 2014 Steve "Sc00bz" Thomas (steve at tobtu dot com)
    88 */
     9
    910class ParagonIE_Sodium_Core_Base64_UrlSafe
    1011{
    1112    // COPY ParagonIE_Sodium_Core_Base64_Common STARTING HERE
  • src/wp-includes/style-engine.php

    diff --git src/wp-includes/style-engine.php src/wp-includes/style-engine.php
    index 1a572e4583..a0372e0873 100644
     
    1010 * @since 6.1.0
    1111 */
    1212
    13 
    1413/**
    1514 * Global public interface method to generate styles from a single style object, e.g.,
    1615 * the value of a block's attributes.style object or the top level styles in theme.json.
  • src/wp-includes/template-loader.php

    diff --git src/wp-includes/template-loader.php src/wp-includes/template-loader.php
    index 0fd08545cc..a28748a1a9 100644
     
    44 *
    55 * @package WordPress
    66 */
     7
    78if ( wp_using_themes() ) {
    89        /**
    910         * Fires before determining which template to load.
  • src/wp-includes/theme-compat/comments.php

    diff --git src/wp-includes/theme-compat/comments.php src/wp-includes/theme-compat/comments.php
    index 2002f8679f..92499505c2 100644
     
    66 *
    77 * This file is here for backward compatibility with old themes and will be removed in a future version
    88 */
     9
    910_deprecated_file(
    1011        /* translators: %s: Template name. */
    1112        sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
  • src/wp-includes/theme-compat/embed-404.php

    diff --git src/wp-includes/theme-compat/embed-404.php src/wp-includes/theme-compat/embed-404.php
    index c19a480c03..3b3de40fac 100644
     
    99 * @subpackage Theme_Compat
    1010 * @since 4.5.0
    1111 */
     12
    1213?>
    1314<div class="wp-embed">
    1415        <p class="wp-embed-heading"><?php _e( 'Oops! That embed cannot be found.' ); ?></p>
  • src/wp-includes/theme-compat/embed-content.php

    diff --git src/wp-includes/theme-compat/embed-content.php src/wp-includes/theme-compat/embed-content.php
    index 42884fec0c..ec82623456 100644
     
    99 * @subpackage Theme_Compat
    1010 * @since 4.5.0
    1111 */
     12
    1213?>
    1314        <div <?php post_class( 'wp-embed' ); ?>>
    1415                <?php
  • src/wp-includes/theme-compat/footer.php

    diff --git src/wp-includes/theme-compat/footer.php src/wp-includes/theme-compat/footer.php
    index 53f6d31373..b8357dff9e 100644
     
    66 *
    77 * This file is here for backward compatibility with old themes and will be removed in a future version
    88 */
     9
    910_deprecated_file(
    1011        /* translators: %s: Template name. */
    1112        sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
  • src/wp-includes/theme-compat/header.php

    diff --git src/wp-includes/theme-compat/header.php src/wp-includes/theme-compat/header.php
    index daa0088d23..60bc4138bd 100644
     
    66 *
    77 * This file is here for backward compatibility with old themes and will be removed in a future version.
    88 */
     9
    910_deprecated_file(
    1011        /* translators: %s: Template name. */
    1112        sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
  • src/wp-includes/theme-compat/sidebar.php

    diff --git src/wp-includes/theme-compat/sidebar.php src/wp-includes/theme-compat/sidebar.php
    index da4efaa86c..87045e12d8 100644
     
    66 *
    77 * This file is here for backward compatibility with old themes and will be removed in a future version.
    88 */
     9
    910_deprecated_file(
    1011        /* translators: %s: Template name. */
    1112        sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
  • src/wp-includes/theme-templates.php

    diff --git src/wp-includes/theme-templates.php src/wp-includes/theme-templates.php
    index 16bd5e2d77..4ed39ed019 100644
     
    1010 *
    1111 * @param int $post_id Post ID.
    1212 */
     13
    1314function wp_set_unique_slug_on_create_template_part( $post_id ) {
    1415        $post = get_post( $post_id );
    1516        if ( 'auto-draft' !== $post->post_status ) {