Changeset 55857 for trunk/src/wp-includes/media.php
- Timestamp:
- 05/25/2023 12:53:24 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r55847 r55857 4485 4485 if ( null === $show_audio_playlist ) { 4486 4486 $show_audio_playlist = $wpdb->get_var( 4487 " 4488 SELECT ID 4487 "SELECT ID 4489 4488 FROM $wpdb->posts 4490 4489 WHERE post_type = 'attachment' 4491 4490 AND post_mime_type LIKE 'audio%' 4492 LIMIT 1 4493 " 4491 LIMIT 1" 4494 4492 ); 4495 4493 } … … 4515 4513 if ( null === $show_video_playlist ) { 4516 4514 $show_video_playlist = $wpdb->get_var( 4517 " 4518 SELECT ID 4515 "SELECT ID 4519 4516 FROM $wpdb->posts 4520 4517 WHERE post_type = 'attachment' 4521 4518 AND post_mime_type LIKE 'video%' 4522 LIMIT 1 4523 " 4519 LIMIT 1" 4524 4520 ); 4525 4521 } … … 4544 4540 $months = $wpdb->get_results( 4545 4541 $wpdb->prepare( 4546 " 4547 SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month 4548 FROM $wpdb->posts 4549 WHERE post_type = %s 4550 ORDER BY post_date DESC 4551 ", 4542 "SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month 4543 FROM $wpdb->posts 4544 WHERE post_type = %s 4545 ORDER BY post_date DESC", 4552 4546 'attachment' 4553 4547 )
Note: See TracChangeset
for help on using the changeset viewer.