@@ -38,7 +38,9 @@ discard block |
||
| 38 | 38 | public function printFiltersFor( $hook = '' ) |
| 39 | 39 | { |
| 40 | 40 | global $wp_filter; |
| 41 | - if( empty( $hook ) || !isset( $wp_filter[$hook] ))return; |
|
| 41 | + if( empty( $hook ) || !isset( $wp_filter[$hook] )) { |
|
| 42 | + return; |
|
| 43 | + } |
|
| 42 | 44 | $this->printF( $wp_filter[ $hook ] ); |
| 43 | 45 | } |
| 44 | 46 | |
@@ -70,8 +72,7 @@ discard block |
||
| 70 | 72 | printf( '<div class="print__r"><pre>%s</pre></div>', |
| 71 | 73 | htmlspecialchars( print_r( func_get_arg(0), true ), ENT_QUOTES, 'UTF-8' ) |
| 72 | 74 | ); |
| 73 | - } |
|
| 74 | - else if( $args > 1 ) { |
|
| 75 | + } else if( $args > 1 ) { |
|
| 75 | 76 | echo '<div class="print__r_group">'; |
| 76 | 77 | foreach( func_get_args() as $value ) { |
| 77 | 78 | $this->printF( $value ); |