Changeset 29271 for trunk/src/wp-includes/media.php
- Timestamp:
- 07/22/2014 08:46:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r29212 r29271 2773 2773 return; 2774 2774 2775 global $content_width, $wpdb ;2775 global $content_width, $wpdb, $wp_locale; 2776 2776 2777 2777 $defaults = array( … … 2826 2826 LIMIT 1 2827 2827 " ); 2828 $months = $wpdb->get_results( $wpdb->prepare( " 2829 SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month 2830 FROM $wpdb->posts 2831 WHERE post_type = %s 2832 ORDER BY post_date DESC 2833 ", 'attachment' ) ); 2834 foreach ( $months as $month_year ) { 2835 $month_year->text = sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month_year->month ), $month_year->year ); 2836 } 2828 2837 2829 2838 $settings = array( … … 2847 2856 'embedMimes' => $ext_mimes, 2848 2857 'contentWidth' => $content_width, 2858 'months' => $months, 2849 2859 ); 2850 2860 … … 2905 2915 'allMediaItems' => __( 'All media items' ), 2906 2916 'allMediaTypes' => __( 'All media types' ), 2917 'allDates' => __( 'All dates' ), 2907 2918 'noItemsFound' => __( 'No items found.' ), 2908 2919 'insertIntoPost' => $hier ? __( 'Insert into page' ) : __( 'Insert into post' ),
Note: See TracChangeset
for help on using the changeset viewer.