mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
Coding Standards: Use strict comparison in wp_count_attachments().
Follow-up to [54255]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59567 git-svn-id: http://core.svn.wordpress.org/trunk@58953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
54aeb1d515
commit
53704a95ce
|
|
@ -3390,7 +3390,8 @@ function wp_count_attachments( $mime_type = '' ) {
|
|||
);
|
||||
|
||||
$counts = wp_cache_get( $cache_key, 'counts' );
|
||||
if ( false == $counts ) {
|
||||
|
||||
if ( false === $counts ) {
|
||||
$and = wp_post_mime_type_where( $mime_type );
|
||||
$count = $wpdb->get_results( "SELECT post_mime_type, COUNT( * ) AS num_posts FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' $and GROUP BY post_mime_type", ARRAY_A );
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59566';
|
||||
$wp_version = '6.8-alpha-59567';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user