diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index b103d5707e..3e8b74b2d1 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -466,7 +466,7 @@ if ( ! empty( $invalid ) ) { /* translators: 1: plugin file, 2: error message */ __( 'The plugin %1$s has been deactivated due to an error: %2$s' ), '' . esc_html( $plugin_file ) . '', - $error->get_error_message() + esc_html( $error->get_error_message() ) ); echo '

'; } @@ -517,7 +517,7 @@ elseif ( isset( $_GET['deleted'] ) ) : if ( is_wp_error( $delete_result ) ) : ?> -

get_error_message() ); ?>

+

get_error_message() ) ); ?>

diff --git a/wp-includes/bookmark.php b/wp-includes/bookmark.php index 32499541d4..4a7f8c7df8 100644 --- a/wp-includes/bookmark.php +++ b/wp-includes/bookmark.php @@ -292,7 +292,7 @@ function get_bookmarks( $args = '' ) { $query .= " $exclusions $inclusions $search"; $query .= " ORDER BY $orderby $order"; if ( $r['limit'] != -1 ) { - $query .= ' LIMIT ' . $r['limit']; + $query .= ' LIMIT ' . absint( $r['limit'] ); } $results = $wpdb->get_results( $query ); diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 0c43beef33..accf4cf053 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1047,9 +1047,10 @@ function post_custom( $key = '' ) { * * @since 1.2.0 * - * @internal This will probably change at some point... + * @deprecated 6.0.2 Use get_post_meta() to retrieve post meta and render manually. */ function the_meta() { + _deprecated_function( __FUNCTION__, '6.0.2', 'get_post_meta()' ); if ( $keys = get_post_custom_keys() ) { $li_html = ''; foreach ( (array) $keys as $key ) { @@ -1064,8 +1065,8 @@ function the_meta() { $html = sprintf( "

  • %s
  • \n", /* translators: %s: Post custom field name */ - sprintf( _x( '%s:', 'Post custom field name' ), $key ), - $value + esc_html( sprintf( _x( '%s:', 'Post custom field name' ), $key ) ), + esc_html( $value ) ); /**