WordPress 7.1.3

This commit is contained in:
2026-10-06 18:59:45 -06:00
parent e2c26b7f21
commit 5c09d6fa68
51 changed files with 1111 additions and 825 deletions
@@ -58,8 +58,11 @@ class DB {
'usermeta' => 'user_id',
];
$key = isset( $keys_by_table[ $table ] ) ? $keys_by_table[ $table ] : 'post_id';
$data = self::table( $table )
->select( 'meta_id' )
// The wp_usermeta table's primary key column is umeta_id, unlike post/term/comment meta tables which use meta_id.
$id_column = 'usermeta' === $table ? 'umeta_id' : 'meta_id';
$data = self::table( $table )
->select( [ $id_column => 'meta_id' ] )
->select( 'meta_value' )
->where( $key, $object_id )
->whereLike( 'meta_key', 'rank_math_schema', '' )