Changeset 41581 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 09/23/2017 05:06:40 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/media.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r41328 r41581 2900 2900 2901 2901 if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ) { 2902 $fields = array( 2903 'length_formatted' => __( 'Length:' ), 2904 'bitrate' => __( 'Bitrate:' ), 2905 ); 2902 2906 2903 2907 /** … … 2908 2912 * 2909 2913 * @since 3.7.0 2914 * @since 4.9.0 Added the `$post` parameter. 2910 2915 * 2911 * @param array $fields An array of the attachment metadata keys and labels. 2916 * @param array $fields An array of the attachment metadata keys and labels. 2917 * @param WP_Post $post WP_Post object for the current attachment. 2912 2918 */ 2913 $fields = apply_filters( 'media_submitbox_misc_sections', array( 2914 'length_formatted' => __( 'Length:' ), 2915 'bitrate' => __( 'Bitrate:' ), 2916 ) ); 2919 $fields = apply_filters( 'media_submitbox_misc_sections', $fields, $post ); 2917 2920 2918 2921 foreach ( $fields as $key => $label ) { … … 2939 2942 } 2940 2943 2944 $fields = array( 2945 'dataformat' => __( 'Audio Format:' ), 2946 'codec' => __( 'Audio Codec:' ) 2947 ); 2948 2941 2949 /** 2942 2950 * Filters the audio attachment metadata fields to be shown in the publish meta box. … … 2946 2954 * 2947 2955 * @since 3.7.0 2956 * @since 4.9.0 Added the `$post` parameter. 2948 2957 * 2949 * @param array $fields An array of the attachment metadata keys and labels. 2958 * @param array $fields An array of the attachment metadata keys and labels. 2959 * @param WP_Post $post WP_Post object for the current attachment. 2950 2960 */ 2951 $audio_fields = apply_filters( 'audio_submitbox_misc_sections', array( 2952 'dataformat' => __( 'Audio Format:' ), 2953 'codec' => __( 'Audio Codec:' ) 2954 ) ); 2961 $audio_fields = apply_filters( 'audio_submitbox_misc_sections', $fields, $post ); 2955 2962 2956 2963 foreach ( $audio_fields as $key => $label ) {
Note: See TracChangeset
for help on using the changeset viewer.