Changeset 57987 for trunk/src/wp-includes/post.php
- Timestamp:
- 04/12/2024 05:45:23 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r57858 r57987 3404 3404 } 3405 3405 3406 $where s = array();3406 $where_clauses = array(); 3407 3407 3408 3408 foreach ( (array) $post_mime_types as $mime_type ) { … … 3432 3432 3433 3433 if ( str_contains( $mime_pattern, '%' ) ) { 3434 $where s[] = empty( $table_alias ) ? "post_mime_type LIKE '$mime_pattern'" : "$table_alias.post_mime_type LIKE '$mime_pattern'";3434 $where_clauses[] = empty( $table_alias ) ? "post_mime_type LIKE '$mime_pattern'" : "$table_alias.post_mime_type LIKE '$mime_pattern'"; 3435 3435 } else { 3436 $where s[] = empty( $table_alias ) ? "post_mime_type = '$mime_pattern'" : "$table_alias.post_mime_type = '$mime_pattern'";3437 } 3438 } 3439 3440 if ( ! empty( $where s ) ) {3441 $where = ' AND (' . implode( ' OR ', $where s ) . ') ';3436 $where_clauses[] = empty( $table_alias ) ? "post_mime_type = '$mime_pattern'" : "$table_alias.post_mime_type = '$mime_pattern'"; 3437 } 3438 } 3439 3440 if ( ! empty( $where_clauses ) ) { 3441 $where = ' AND (' . implode( ' OR ', $where_clauses ) . ') '; 3442 3442 } 3443 3443
Note: See TracChangeset
for help on using the changeset viewer.