PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 13.5
Jetpack – WP Security, Backup, Speed, & Growth v13.5
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 14.1.1 14.2.2 14.3.1 14.4.2 All 500 releases
jetpack / modules / masterbar / wp-posts-list / bootstrap.php
bootstrap.php
23 lines 568 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WP-Admin Posts list bootstrap file.
4 *
5 * @package Jetpack
6 */
7
8 /**
9 * Load the Posts_List_Notification.
10 */
11 function masterbar_init_wp_posts_list() {
12 global $pagenow;
13
14 if (
15 ( 'edit.php' === $pagenow && isset( $_GET['post_type'] ) && 'page' === $_GET['post_type'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended
16 ) {
17 require_once __DIR__ . '/class-posts-list-page-notification.php';
18 Automattic\Jetpack\Dashboard_Customizations\Posts_List_Page_Notification::init();
19 }
20 }
21
22 add_action( 'init', 'masterbar_init_wp_posts_list', 1 );
23