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
a9ff794a
Commit
a9ff794a
authored
Sep 06, 2016
by
John James Jacoby
Browse files
Fix filter not showing "No categories" selected option.
parent
0a95ef24
Changes
1
Hide whitespace changes
Inline
Side-by-side
wp-media-categories/includes/admin.php
View file @
a9ff794a
...
@@ -72,10 +72,17 @@ function wp_media_categories_add_category_filter() {
...
@@ -72,10 +72,17 @@ function wp_media_categories_add_category_filter() {
return
;
return
;
}
}
//
Get media taxonomy
//
Looking at specific term
$selected_value
=
isset
(
$_GET
[
'term'
]
)
$selected_value
=
isset
(
$_GET
[
'term'
]
)
?
$_GET
[
'term'
]
?
$_GET
[
'term'
]
:
''
;
?>
:
''
;
// Maybe looking for attachments with no terms
if
(
empty
(
$selected_value
)
)
{
$selected_value
=
isset
(
$_GET
[
'media_category'
]
)
?
$_GET
[
'media_category'
]
:
''
;
}
?>
<label
for=
"media_category"
class=
"screen-reader-text"
>
<?php
esc_html_e
(
'Filter by Category'
,
'wp-media-categories'
);
?>
</label>
<label
for=
"media_category"
class=
"screen-reader-text"
>
<?php
esc_html_e
(
'Filter by Category'
,
'wp-media-categories'
);
?>
</label>
...
...
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