WordPress.org

Make WordPress Core

Changeset 47665


Ignore:
Timestamp:
04/29/2020 05:25:12 PM (5 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @since versions, remove duplicate comment.
Coding Standards: Fix WPCS issues in tests/formatting/SanitizeFileName.php.

Follow-up to [47633], [47638].

Merges [47663], [47664] to the 5.4 branch.

Location:
branches/5.4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/src/wp-includes/class-wp-customize-manager.php

    r47639 r47665  
    29222922        $this->store_changeset_revision = $allow_revision;
    29232923        add_filter( 'wp_save_post_revision_post_has_changed', array( $this, '_filter_revision_post_has_changed' ), 5, 3 );
    2924 
    2925         /*
    2926          * Update the changeset post. The publish_customize_changeset action
    2927          * will cause the settings in the changeset to be saved via
    2928          * WP_Customize_Setting::save().
    2929          */
    29302924
    29312925        /*
  • branches/5.4/tests/phpunit/tests/customize/manager.php

    r47639 r47665  
    13781378     * Sanitize content with Kses if the current user is not the main admin.
    13791379     *
    1380      * @since 5.2.?
     1380     * @since 5.4.1
    13811381     *
    13821382     * @param string $content Content to sanitize.
     
    13931393     * Filter map_meta_cap to disallow unfiltered_html.
    13941394     *
    1395      * @since 5.2.?
     1395     * @since 5.4.1
    13961396     *
    13971397     * @param array  $caps User's capabilities.
  • branches/5.4/tests/phpunit/tests/formatting/SanitizeFileName.php

    r47643 r47665  
    7979    function data_wp_filenames() {
    8080        return array(
    81             [ urldecode( '%B1myfile.png' ), 'myfile.png' ],
    82             [ urldecode( '%B1myfile' ), 'myfile' ],
    83             [ 'demo bar.png', 'demo-bar.png' ],
    84             [ 'demo' . json_decode( '"\u00a0"' ) . 'bar.png', 'demo-bar.png' ],
     81            array( urldecode( '%B1myfile.png' ), 'myfile.png' ),
     82            array( urldecode( '%B1myfile' ), 'myfile' ),
     83            array( 'demo bar.png', 'demo-bar.png' ),
     84            array( 'demo' . json_decode( '"\u00a0"' ) . 'bar.png', 'demo-bar.png' ),
    8585        );
    8686    }
Note: See TracChangeset for help on using the changeset viewer.