Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Publicious.org
Plugins
Media Categories
Commits
4a5f35d6
Commit
4a5f35d6
authored
Oct 26, 2015
by
John James Jacoby
Browse files
Updat "All" string to match WP core.
parent
64e8c904
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/admin.php
View file @
4a5f35d6
...
...
@@ -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 a
ll categories'
,
'wp-media-categories'
);
$no_categories
=
__
(
'No categories'
,
'wp-media-categories'
);
$all_categories
=
__
(
'
A
ll categories'
,
'wp-media-categories'
);
$no_category_term
=
' ,{"term_id":"'
.
'no_category'
.
'","term_name":"'
.
$no_categories
.
'"}'
;
$attachment_terms
=
$no_category_term
.
substr
(
$attachment_terms
,
1
);
...
...
includes/functions.php
View file @
4a5f35d6
...
...
@@ -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 a
ll categories'
,
'wp-media-categories'
),
'show_option_none'
=>
__
(
'No categories'
,
'wp-media-categories'
),
'show_option_all'
=>
__
(
'
A
ll categories'
,
'wp-media-categories'
),
'show_option_none'
=>
__
(
'No categories'
,
'wp-media-categories'
),
'show_count'
=>
true
,
'value'
=>
'slug'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment