Make WordPress Core


Ignore:
Timestamp:
08/30/2022 03:38:30 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Grouped backports to the 5.2 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.2 branch.
Props tykoted, martinkrcho, xknown, dd32, peterwilsoncc, paulkevan, timothyblynjacobs.

Location:
branches/5.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2

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

    r45937 r53971  
    10761076 * @since 1.2.0
    10771077 *
    1078  * @internal This will probably change at some point...
     1078 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
    10791079 */
    10801080function the_meta() {
     1081    _deprecated_function( __FUNCTION__, '6.0.2', 'get_post_meta()' );
    10811082    if ( $keys = get_post_custom_keys() ) {
    10821083        $li_html = '';
     
    10931094                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
    10941095                /* translators: %s: Post custom field name */
    1095                 sprintf( _x( '%s:', 'Post custom field name' ), $key ),
    1096                 $value
     1096                esc_html( sprintf( _x( '%s:', 'Post custom field name' ), $key ) ),
     1097                esc_html( $value )
    10971098            );
    10981099
Note: See TracChangeset for help on using the changeset viewer.