Ticket #27802: 27802.3.diff
File 27802.3.diff, 541 bytes (added by , 11 years ago) |
---|
-
\wp-includes\media.php
old new 2411 2411 break; 2412 2412 } 2413 2413 } 2414 2414 } 2415 2415 2416 2416 $audio = $video = 0; 2417 $counts = (array)wp_count_attachments();2417 $counts = wp_count_attachments(); 2418 2418 foreach ( $counts as $mime => $total ) { 2419 2419 if ( 0 === strpos( $mime, 'audio/' ) ) { 2420 2420 $audio += (int) $total; 2421 2421 } elseif ( 0 === strpos( $mime, 'video/' ) ) { 2422 2422 $video += (int) $total; 2423 2423 }