Make WordPress Core


Ignore:
Timestamp:
09/20/2017 09:23:51 PM (8 years ago)
Author:
westonruter
Message:

Customize: Let media control button labels better automatically reflect the specified MIME type.

Props Christian1012, celloexpressions, westonruter.
Fixes #38796.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r41397 r41550  
    40054005            'section'        => 'header_image',
    40064006            'mime_type'      => 'video',
    4007             // @todo These button_labels can be removed once WP_Customize_Media_Control provides mime_type-specific labels automatically. See <https://core.trac.wordpress.org/ticket/38796>.
    4008             'button_labels'  => array(
    4009                 'select'       => __( 'Select Video' ),
    4010                 'change'       => __( 'Change Video' ),
    4011                 'placeholder'  => __( 'No video selected' ),
    4012                 'frame_title'  => __( 'Select Video' ),
    4013                 'frame_button' => __( 'Choose Video' ),
    4014             ),
    40154007            'active_callback' => 'is_header_video_active',
    40164008        ) ) );
Note: See TracChangeset for help on using the changeset viewer.