Make WordPress Core


Ignore:
Timestamp:
08/30/2022 03:37:18 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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

Location:
branches/5.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3

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

    r46451 r53970  
    10821082 * @since 1.2.0
    10831083 *
    1084  * @internal This will probably change at some point...
     1084 * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually.
    10851085 */
    10861086function the_meta() {
     1087    _deprecated_function( __FUNCTION__, '6.0.2', 'get_post_meta()' );
    10871088    $keys = get_post_custom_keys();
    10881089    if ( $keys ) {
     
    11001101                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
    11011102                /* translators: %s: Post custom field name. */
    1102                 sprintf( _x( '%s:', 'Post custom field name' ), $key ),
    1103                 $value
     1103                esc_html( sprintf( _x( '%s:', 'Post custom field name' ), $key ) ),
     1104                esc_html( $value )
    11041105            );
    11051106
Note: See TracChangeset for help on using the changeset viewer.