| 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 |
|