We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bc271c commit af3d204Copy full SHA for af3d204
includes/functions.php
@@ -301,12 +301,16 @@ function sidebar_list() {
301
// List markup.
302
$html = '<div class="list-wrap cats-list-wrap-wrap plugin plugin-cats-list">';
303
if ( ! empty( plugin()->label() ) ) {
304
- $html .= sprintf(
305
- '%1$s%2$s%3$s',
306
- $label_el_open,
307
- plugin()->label(),
308
- $label_el_close
309
- );
+ if ( plugin()->label_wrap() ) {
+ $html .= sprintf(
+ '%1$s%2$s%3$s',
+ $label_el_open,
+ plugin()->label(),
+ $label_el_close
310
+ );
311
+ } else {
312
+ $html .= plugin()->label();
313
+ }
314
}
315
if ( checkRole( [ 'admin' ], false ) && 'select' == plugin()->display() && ! selected_cats() ) {
316
$html .= sprintf(
0 commit comments