PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
16.3-beta 16.3-a.5 16.3-a.7 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 All 507 releases
jetpack / jetpack_vendor / automattic / jetpack-masterbar / src / admin-menu / class-difm-lite-admin-menu.php

class-difm-lite-admin-menu.php in Jetpack – WP Security, Backup, Speed, & Growth 16.3-beta, at jetpack_vendor/automattic/jetpack-masterbar/src/admin-menu/class-difm-lite-admin-menu.php

40 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * DIFM Lite (Express) Admin Menu file.
4 *
5 * @package automattic/jetpack-masterbar
6 */
7
8 namespace Automattic\Jetpack\Masterbar;
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit( 0 );
12 }
13
14 /**
15 * Class DIFM_Lite_Admin_Menu.
16 *
17 * The admin menu shown while a DIFM Express build is still awaiting the
18 * customer's content. It is the domain-only menu plus Posts, Media and Pages:
19 * the customer needs to read their existing content to fill in the content
20 * form, but the site is otherwise locked for the duration of the build.
21 *
22 * Once the content is submitted the build is under way and
23 * Domain_Only_Admin_Menu applies instead.
24 */
25 class DIFM_Lite_Admin_Menu extends Domain_Only_Admin_Menu {
26 /**
27 * Create the desired menu output.
28 */
29 public function reregister_menu_items() {
30 parent::reregister_menu_items();
31
32 // @phan-suppress-next-line PhanTypeMismatchArgumentProbablyReal -- Core should ideally document null for no-callback arg. https://core.trac.wordpress.org/ticket/52539.
33 add_menu_page( esc_attr__( 'Posts', 'jetpack-masterbar' ), __( 'Posts', 'jetpack-masterbar' ), 'edit_posts', 'edit.php', null, 'dashicons-admin-post' );
34 // @phan-suppress-next-line PhanTypeMismatchArgumentProbablyReal -- Core should ideally document null for no-callback arg. https://core.trac.wordpress.org/ticket/52539.
35 add_menu_page( esc_attr__( 'Media', 'jetpack-masterbar' ), __( 'Media', 'jetpack-masterbar' ), 'upload_files', 'upload.php', null, 'dashicons-admin-media' );
36 // @phan-suppress-next-line PhanTypeMismatchArgumentProbablyReal -- Core should ideally document null for no-callback arg. https://core.trac.wordpress.org/ticket/52539.
37 add_menu_page( esc_attr__( 'Pages', 'jetpack-masterbar' ), __( 'Pages', 'jetpack-masterbar' ), 'edit_pages', 'edit.php?post_type=page', null, 'dashicons-admin-page' );
38 }
39 }
40