Commit 4a5f35d6 authored by John James Jacoby's avatar John James Jacoby
Browse files

Updat "All" string to match WP core.

parent 64e8c904
......@@ -38,8 +38,8 @@ function wp_media_categories_enqueue_admin_scripts() {
$attachment_terms = preg_replace( array( '/<select([^>]*)>/', '/<\/select>/' ), '', $attachment_terms );
// Add an attachment_terms for No category
$no_categories = __( 'No categories', 'wp-media-categories' );
$all_categories = __( 'View all categories', 'wp-media-categories' );
$no_categories = __( 'No categories', 'wp-media-categories' );
$all_categories = __( 'All categories', 'wp-media-categories' );
$no_category_term = ' ,{"term_id":"' . 'no_category' . '","term_name":"' . $no_categories . '"}';
$attachment_terms = $no_category_term . substr( $attachment_terms, 1 );
......
......@@ -126,8 +126,8 @@ function wp_media_categories_get_media_category_options( $selected_value = '') {
'hierarchical' => true,
'orderby' => 'name',
'walker' => new WP_Media_Categories_Filter_Walker(),
'show_option_all' => __( 'View all categories', 'wp-media-categories' ),
'show_option_none' => __( 'No categories', 'wp-media-categories' ),
'show_option_all' => __( 'All categories', 'wp-media-categories' ),
'show_option_none' => __( 'No categories', 'wp-media-categories' ),
'show_count' => true,
'value' => 'slug'
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment