@@ -1,5 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * A settings API (wrapping the WordPress Settings API). |
@@ -315,8 +318,9 @@ discard block |
||
| 315 | 318 | |
| 316 | 319 | echo '<section id="' . $section_id . '">'; |
| 317 | 320 | |
| 318 | - if ($section['name']) |
|
| 319 | - echo "<h2>{$section['name']}</h2>\n"; |
|
| 321 | + if ($section['name']) { |
|
| 322 | + echo "<h2>{$section['name']}</h2>\n"; |
|
| 323 | + } |
|
| 320 | 324 | |
| 321 | 325 | echo '<table class="form-table">'; |
| 322 | 326 | do_settings_fields($page, $section_id ); |