modules/shortcodes/audio.php 1 location
|
@@ 44-51 (lines=8) @@
|
41 |
|
return '<!-- Audio shortcode passed invalid attributes -->'; |
42 |
|
} |
43 |
|
|
44 |
|
if ( ! isset( $atts[0] ) ) { |
45 |
|
if ( isset( $atts['src'] ) ) { |
46 |
|
$atts[0] = $atts['src']; |
47 |
|
unset( $atts['src'] ); |
48 |
|
} else { |
49 |
|
return '<!-- Audio shortcode source not set -->'; |
50 |
|
} |
51 |
|
} |
52 |
|
|
53 |
|
$post_id = 0; |
54 |
|
if ( isset( $post ) ) { |
modules/widget-visibility/widget-conditions.php 1 location
|
@@ 645-647 (lines=3) @@
|
642 |
|
break; |
643 |
|
case 'taxonomy': |
644 |
|
$term = explode( '_tax_', $rule['minor'] ); // $term[0] = taxonomy name; $term[1] = term id |
645 |
|
if ( isset( $term[0] ) && isset( $term[1] ) ) { |
646 |
|
$term[1] = self::maybe_get_split_term( $term[1], $term[0] ); |
647 |
|
} |
648 |
|
if ( isset( $term[1] ) && is_tax( $term[0], $term[1] ) ) |
649 |
|
$condition_result = true; |
650 |
|
else if ( isset( $term[1] ) && is_singular() && $term[1] && has_term( $term[1], $term[0] ) ) |