| @@ -1,9 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | + | |
| 2 | 3 | /** |
| 3 | 4 | * Displays the Languages admin panel |
| 4 | - * | |
| 5 | - * @package Polylang | |
| 6 | 5 | */ |
| 7 | 6 | |
| 8 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | 8 | exit; // Don't access directly |
| @@ -8,19 +7,19 @@ | ||
| 8 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | 8 | exit; // Don't access directly |
| 10 | 9 | }; |
| 11 | 10 | |
| 12 | -require ABSPATH . 'wp-admin/options-head.php'; // Displays the errors messages as when we were a child of options-general.php | |
| 11 | +require(ABSPATH . 'wp-admin/options-head.php'); // Displays the errors messages as when we were a child of options-general.php | |
| 13 | 12 | ?> |
| 14 | 13 | <div class="wrap"> |
| 15 | - <h1><?php echo esc_html( $GLOBALS['title'] ); ?></h1> | |
| 16 | - <?php | |
| 14 | + <h1><?php echo esc_html( $GLOBALS['title'] ); ?></h1><?php | |
| 15 | + | |
| 17 | 16 | switch ( $this->active_tab ) { |
| 18 | 17 | case 'lang': // Languages tab |
| 19 | 18 | case 'strings': // String translations tab |
| 20 | 19 | case 'settings': // Settings tab |
| 21 | - include __DIR__ . '/view-tab-' . $this->active_tab . '.php'; | |
| 22 | - // Intentional fall-through to upgrade to fire the action below. | |
| 20 | + include( PLL_SETTINGS_INC . '/view-tab-' . $this->active_tab . '.php' ); | |
| 21 | + break; | |
| 23 | 22 | |
| 24 | 23 | default: |
| 25 | 24 | /** |
| 26 | 25 | * Fires when loading the active Polylang settings tab |
| @@ -28,8 +27,8 @@ | ||
| 28 | 27 | * |
| 29 | 28 | * @since 1.5.1 |
| 30 | 29 | */ |
| 31 | 30 | do_action( 'pll_settings_active_tab_' . $this->active_tab ); |
| 32 | - break; | |
| 33 | - } | |
| 34 | - ?> | |
| 31 | + break; | |
| 32 | + }?> | |
| 33 | + | |
| 35 | 34 | </div><!-- wrap --> |