PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.2
Jetpack – WP Security, Backup, Speed, & Growth v16.2
16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← All changes | views/admin/network-settings.php +9 -5 12.9.516.2 View file →
@@ -1,13 +1,20 @@
1 1 <?php
2 2 /**
3 3 * Jetpack Network Settings view template.
4 4 *
5 + * @html-template Jetpack::load_view
5 6 * @package automattic/jetpack
6 7 */
7 8
9 +// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it.
10 +
8 11 use Automattic\Jetpack\IP\Utils as IP_Utils;
9 12
13 +if ( ! defined( 'ABSPATH' ) ) {
14 + exit( 0 );
15 +}
16 +
10 17 if ( isset( $_GET['updated'] ) && 'true' === $_GET['updated'] ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended
11 18 ?>
12 19 <div class="updated"><p><?php esc_html_e( 'Jetpack Network Settings Updated!', 'jetpack' ); ?></p></div>
13 20 <?php endif; ?>
@@ -18,18 +25,15 @@
18 25 <div class="error"><p><?php esc_html_e( 'One of your IP addresses was not valid.', 'jetpack' ); ?></p></div>
19 26 <?php endif; ?>
20 27
21 28 <div class="wrap">
22 - <h2><?php esc_html_e( 'Network Settings', 'jetpack' ); ?></h2>
23 29 <form action="edit.php?action=jetpack-network-settings" method="POST">
24 - <h3><?php echo esc_html_x( 'Global', 'Affects all sites in a Multisite network.', 'jetpack' ); ?></h3>
25 - <p><?php esc_html_e( 'These settings affect all sites on the network.', 'jetpack' ); ?></p>
26 30 <?php wp_nonce_field( 'jetpack-network-settings' ); ?>
27 31 <table class="form-table">
28 32 <tr valign="top">
29 33 <th scope="row"><label for="sub-site-override"><?php esc_html_e( 'Sub-site override', 'jetpack' ); ?></label></th>
30 34 <td>
31 - <input type="checkbox" name="sub-site-connection-override" id="sub-site-override" value="1" <?php checked( $data['options']['sub-site-connection-override'] ); // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable ?> />
35 + <input type="checkbox" name="sub-site-connection-override" id="sub-site-override" value="1" <?php checked( $data['options']['sub-site-connection-override'] ); ?> />
32 36 <label for="sub-site-override"><?php esc_html_e( 'Allow individual site administrators to manage their own connections (connect and disconnect) to WordPress.com', 'jetpack' ); ?></label>
33 37 </td>
34 38 </tr>
35 39
@@ -50,9 +54,9 @@
50 54 </strong></p>
51 55 <?php
52 56 echo '<textarea name="global-allow-list" style="width: 100%;" rows="8">'; // echo to avoid tabs displayed in textarea. See https://github.com/Automattic/jetpack/pull/21151/files#r713922521.
53 57
54 - foreach ( $data['jetpack_protect_whitelist']['global'] as $ip ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
58 + foreach ( $data['jetpack_protect_whitelist']['global'] as $ip ) {
55 59 echo esc_html( $ip ) . "\n";
56 60 }
57 61 ?>
58 62 </textarea> <br />