Make WordPress Core

Ticket #60021: 60021.5.patch

File 60021.5.patch, 2.0 KB (added by viralsampat, 2 years ago)

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

  • src/wp-includes/template.php

    diff --git src/wp-includes/template.php src/wp-includes/template.php
    index 989d630f7f..0e128ecae1 100644
    function get_singular_template() { 
    654654 *
    655655 * @see get_query_template()
    656656 *
    657  * @global array $posts
    658657 *
    659658 * @return string Full path to attachment template file.
    660659 */
  • src/wp-includes/theme.php

    diff --git src/wp-includes/theme.php src/wp-includes/theme.php
    index 81c91ab5cc..1638128b4c 100644
    function _wp_customize_include() { 
    35913591 * @since 4.7.0
    35923592 * @access private
    35933593 *
    3594  * @global wpdb                 $wpdb         WordPress database abstraction object.
    35953594 * @global WP_Customize_Manager $wp_customize Customizer instance.
    35963595 *
    35973596 * @param string  $new_status     New post status.
    function _wp_customize_include() { 
    35993598 * @param WP_Post $changeset_post Changeset post object.
    36003599 */
    36013600function _wp_customize_publish_changeset( $new_status, $old_status, $changeset_post ) {
    3602         global $wp_customize, $wpdb;
     3601        global $wp_customize;
    36033602
    36043603        $is_publishing_changeset = (
    36053604                'customize_changeset' === $changeset_post->post_type
  • src/wp-includes/user.php

    diff --git src/wp-includes/user.php src/wp-includes/user.php
    index 5b9dacc20f..c1a16ce471 100644
    All at ###SITENAME### 
    48164816 * Returns a confirmation key for a user action and stores the hashed version for future comparison.
    48174817 *
    48184818 * @since 4.9.6
     4819 * @global PasswordHash $wp_hasher  Portable PHP password hashing framework.
    48194820 *
    48204821 * @param int $request_id Request ID.
    48214822 * @return string Confirmation key.
    function wp_generate_user_request_key( $request_id ) { 
    48474848 * Validates a user request by comparing the key with the request's key.
    48484849 *
    48494850 * @since 4.9.6
     4851 * @global PasswordHash $wp_hasher  Portable PHP password hashing framework.
    48504852 *
    48514853 * @param string $request_id ID of the request being confirmed.
    48524854 * @param string $key        Provided key to validate.