summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/views/admin')
-rw-r--r--plugins/jetpack/views/admin/must-connect-main-blog.php10
-rw-r--r--plugins/jetpack/views/admin/network-activated-notice.php19
-rw-r--r--plugins/jetpack/views/admin/network-admin-alert.php6
-rw-r--r--plugins/jetpack/views/admin/network-admin-footer.php6
-rw-r--r--plugins/jetpack/views/admin/network-admin-header.php11
5 files changed, 31 insertions, 21 deletions
diff --git a/plugins/jetpack/views/admin/must-connect-main-blog.php b/plugins/jetpack/views/admin/must-connect-main-blog.php
index decf72bd..decb2eb5 100644
--- a/plugins/jetpack/views/admin/must-connect-main-blog.php
+++ b/plugins/jetpack/views/admin/must-connect-main-blog.php
@@ -1,3 +1,11 @@
+<?php
+/**
+ * View template file for main network site connection prompt.
+ *
+ * @package automattic/jetpack
+ */
+
+?>
<div class="wrap">
<div class="jetpack-wrap-container dops-card">
<div class="jetpack-text-container">
@@ -7,7 +15,7 @@
</p>
</div>
<div class="jetpack-install-container">
- <p class="submit"><a href="<?php echo esc_url( $data['url'] ); ?>" class="button-connector dops-button is-primary" id="wpcom-connect"><?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?></a></p>
+ <p class="submit"><a href="<?php echo esc_url( $data['url'] ); // phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- $data is loaded by Jetpack::load_view(). ?>" class="button-connector dops-button is-primary" id="wpcom-connect"><?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?></a></p>
<p class="jetpack-install-blurb">
<?php jetpack_render_tos_blurb(); ?>
</p>
diff --git a/plugins/jetpack/views/admin/network-activated-notice.php b/plugins/jetpack/views/admin/network-activated-notice.php
index 93809035..b33faa2e 100644
--- a/plugins/jetpack/views/admin/network-activated-notice.php
+++ b/plugins/jetpack/views/admin/network-activated-notice.php
@@ -1,5 +1,14 @@
-<?php if ( isset( $_GET['jetpack-notice'] ) && 'dismiss' == $_GET['jetpack-notice'] ) : ?>
- <div id="message" class="error">
- <p><?php _e( 'Jetpack is network activated and notices can not be dismissed.', 'jetpack' ); ?></p>
- </div>
-<?php endif; ?>
+<?php
+/**
+ * View template file for network activation notice.
+ *
+ * @package automattic/jetpack
+ */
+
+if ( isset( $_GET['jetpack-notice'] ) && 'dismiss' === $_GET['jetpack-notice'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
+ ?>
+<div id="message" class="error">
+ <p><?php esc_html_e( 'Jetpack is network activated and notices can not be dismissed.', 'jetpack' ); ?></p>
+</div>
+ <?php
+}
diff --git a/plugins/jetpack/views/admin/network-admin-alert.php b/plugins/jetpack/views/admin/network-admin-alert.php
deleted file mode 100644
index 434b80f1..00000000
--- a/plugins/jetpack/views/admin/network-admin-alert.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-/**
- * Deprecated. No longer needed.
- *
- * @package Jetpack
- */ \ No newline at end of file
diff --git a/plugins/jetpack/views/admin/network-admin-footer.php b/plugins/jetpack/views/admin/network-admin-footer.php
deleted file mode 100644
index 434b80f1..00000000
--- a/plugins/jetpack/views/admin/network-admin-footer.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-/**
- * Deprecated. No longer needed.
- *
- * @package Jetpack
- */ \ No newline at end of file
diff --git a/plugins/jetpack/views/admin/network-admin-header.php b/plugins/jetpack/views/admin/network-admin-header.php
index 2bbe4cf9..aa42ed98 100644
--- a/plugins/jetpack/views/admin/network-admin-header.php
+++ b/plugins/jetpack/views/admin/network-admin-header.php
@@ -1,4 +1,9 @@
<?php
- Jetpack::init()->load_view( 'admin/network-activated-notice.php' );
- /** This action is already documented in views/admin/admin-page.php */
- do_action( 'jetpack_notices' );
+/**
+ * Loads view: admin/network-activated-notice.php
+ *
+ * @package automattic/jetpack
+ */
+
+Jetpack::init()->load_view( 'admin/network-activated-notice.php' );
+do_action( 'jetpack_notices' );