bootstrap.php
2 years ago
class-posts-list-page-notification.php
2 years ago
wp-posts-list.css
5 years ago
bootstrap.php
33 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WP-Admin Posts list bootstrap file. |
| 4 | * |
| 5 | * @deprecated 13.7 |
| 6 | * |
| 7 | * @package automattic\jetpack |
| 8 | * |
| 9 | * @phan-file-suppress PhanDeprecatedFunction -- Ok for deprecated code to call other deprecated code. |
| 10 | */ |
| 11 | |
| 12 | _deprecated_file( __FILE__, 'jetpack-13.7' ); |
| 13 | |
| 14 | /** |
| 15 | * Load the Posts_List_Notification. |
| 16 | * |
| 17 | * @deprecated 13.7 |
| 18 | */ |
| 19 | function masterbar_init_wp_posts_list() { |
| 20 | _deprecated_function( __FUNCTION__, 'jetpack-13.7', 'Automattic\\Jetpack\\Masterbar\\masterbar_init_wp_posts_list' ); |
| 21 | |
| 22 | global $pagenow; |
| 23 | |
| 24 | if ( |
| 25 | ( 'edit.php' === $pagenow && isset( $_GET['post_type'] ) && 'page' === $_GET['post_type'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended |
| 26 | ) { |
| 27 | require_once __DIR__ . '/class-posts-list-page-notification.php'; |
| 28 | Automattic\Jetpack\Dashboard_Customizations\Posts_List_Page_Notification::init(); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | add_action( 'init', 'masterbar_init_wp_posts_list', 1 ); |
| 33 |