diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php
index cf4f192f64..c6df1eb37a 100644
--- a/wp-admin/plugins.php
+++ b/wp-admin/plugins.php
@@ -376,7 +376,7 @@ require_once(ABSPATH . 'wp-admin/admin-header.php');
$invalid = validate_active_plugins();
if ( !empty($invalid) )
foreach ( $invalid as $plugin_file => $error )
- echo '
' . sprintf(__('The plugin %s
has been deactivated due to an error: %s'), esc_html($plugin_file), $error->get_error_message()) . '
';
+ echo '' . sprintf(__('The plugin %s
has been deactivated due to an error: %s'), esc_html($plugin_file), esc_html( $error->get_error_message() ) ) . '
';
?>
- get_error_message() ); ?>
+ get_error_message() ) ); ?>
diff --git a/wp-includes/bookmark.php b/wp-includes/bookmark.php
index 86ea3d22ae..096d700da8 100644
--- a/wp-includes/bookmark.php
+++ b/wp-includes/bookmark.php
@@ -274,7 +274,7 @@ function get_bookmarks($args = '') {
$query .= " $exclusions $inclusions $search";
$query .= " ORDER BY $orderby $order";
if ($limit != -1)
- $query .= " LIMIT $limit";
+ $query .= ' LIMIT ' . absint( $limit );
$results = $wpdb->get_results($query);
diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php
index 476deb7296..945bd7b2bb 100644
--- a/wp-includes/post-template.php
+++ b/wp-includes/post-template.php
@@ -862,11 +862,12 @@ function post_custom( $key = '' ) {
/**
* Display list of post custom fields.
*
- * @internal This will probably change at some point...
* @since 1.2.0
- * @uses apply_filters() Calls 'the_meta_key' on list item HTML content, with key and value as separate parameters.
+ *
+ * @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() ) {
echo "\n";
foreach ( (array) $keys as $key ) {
@@ -885,7 +886,7 @@ function the_meta() {
* @param string $key Meta key.
* @param string $value Meta value.
*/
- echo apply_filters( 'the_meta_key', "- $key: $value
\n", $key, $value );
+ echo apply_filters( 'the_meta_key', "- " . esc_html( $key ) . ":" . esc_html( $value ) . "
\n", $key, $value );
}
echo "
\n";
}