Make WordPress Core


Ignore:
Timestamp:
04/12/2024 05:45:23 PM (13 months ago)
Author:
swissspidy
Message:

Docs: Fix various typos and spelling mistakes.

Props swissspidy, jucaduca, sergeybiryukov.
See #60699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r57858 r57987  
    34043404    }
    34053405
    3406     $wheres = array();
     3406    $where_clauses = array();
    34073407
    34083408    foreach ( (array) $post_mime_types as $mime_type ) {
     
    34323432
    34333433        if ( str_contains( $mime_pattern, '%' ) ) {
    3434             $wheres[] = 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'";
    34353435        } else {
    3436             $wheres[] = empty( $table_alias ) ? "post_mime_type = '$mime_pattern'" : "$table_alias.post_mime_type = '$mime_pattern'";
    3437         }
    3438     }
    3439 
    3440     if ( ! empty( $wheres ) ) {
    3441         $where = ' AND (' . implode( ' OR ', $wheres ) . ') ';
     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 ) . ') ';
    34423442    }
    34433443
Note: See TracChangeset for help on using the changeset viewer.