| @@ -9,8 +9,12 @@ | ||
| 9 | 9 | // phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it. |
| 10 | 10 | |
| 11 | 11 | use Automattic\Jetpack\IP\Utils as IP_Utils; |
| 12 | 12 | |
| 13 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 14 | + exit( 0 ); | |
| 15 | +} | |
| 16 | + | |
| 13 | 17 | if ( isset( $_GET['updated'] ) && 'true' === $_GET['updated'] ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended |
| 14 | 18 | ?> |
| 15 | 19 | <div class="updated"><p><?php esc_html_e( 'Jetpack Network Settings Updated!', 'jetpack' ); ?></p></div> |
| 16 | 20 | <?php endif; ?> |
| @@ -21,12 +25,9 @@ | ||
| 21 | 25 | <div class="error"><p><?php esc_html_e( 'One of your IP addresses was not valid.', 'jetpack' ); ?></p></div> |
| 22 | 26 | <?php endif; ?> |
| 23 | 27 | |
| 24 | 28 | <div class="wrap"> |
| 25 | - <h2><?php esc_html_e( 'Network Settings', 'jetpack' ); ?></h2> | |
| 26 | 29 | <form action="edit.php?action=jetpack-network-settings" method="POST"> |
| 27 | - <h3><?php echo esc_html_x( 'Global', 'Affects all sites in a Multisite network.', 'jetpack' ); ?></h3> | |
| 28 | - <p><?php esc_html_e( 'These settings affect all sites on the network.', 'jetpack' ); ?></p> | |
| 29 | 30 | <?php wp_nonce_field( 'jetpack-network-settings' ); ?> |
| 30 | 31 | <table class="form-table"> |
| 31 | 32 | <tr valign="top"> |
| 32 | 33 | <th scope="row"><label for="sub-site-override"><?php esc_html_e( 'Sub-site override', 'jetpack' ); ?></label></th> |