Make WordPress Core


Ignore:
Timestamp:
08/30/2022 03:33:59 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Grouped backports to the 5.5 branch.

  • Posts, Post Types: Escape output within the_meta().
  • General: Ensure bookmark query limits are numeric.
  • Plugins: Escape output in error messages.
  • Build/Test Tools: Allow the PHPCS plugin in Composer configuration.

Merges [52412,53958-53960] to the 5.5 branch.
Props tykoted, martinkrcho, xknown, dd32, peterwilsoncc, paulkevan, timothyblynjacobs.

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

  • branches/5.5/src/wp-includes/post-template.php

    r48574 r53968  
    10871087 * @since 1.2.0
    10881088 *
    1089  * @internal This will probably change at some point...
     1089 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
    10901090 */
    10911091function the_meta() {
     1092        _deprecated_function( __FUNCTION__, '6.0.2', 'get_post_meta()' );
    10921093        $keys = get_post_custom_keys();
    10931094        if ( $keys ) {
     
    11051106                                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
    11061107                                /* translators: %s: Post custom field name. */
    1107                                 sprintf( _x( '%s:', 'Post custom field name' ), $key ),
    1108                                 $value
     1108                                esc_html( sprintf( _x( '%s:', 'Post custom field name' ), $key ) ),
     1109                                esc_html( $value )
    11091110                        );
    11101111
Note: See TracChangeset for help on using the changeset viewer.