diff --git a/CHANGELOG.md b/CHANGELOG.md index 70315b35..1e6e85c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,11 +6,13 @@ item (Added, Changed, Depreciated, Removed, Fixed, Security). ## [2025.01] +- Added: `Admin_Menu_Order` class to handle reordering the WP Admin menu items that Moose loads with by default. + This also includes Yoast SEO & RankMath, just in case either are used by default. - Added: Node service to Lando so FE assets can be built automatically on start up. - Updated: project start up scripts to automatically generate the correct contents of the lcoal config files. - Updated: script to install WordPress so we can use a version constant and not install WP every time composer is installed or updated. -- Updated: ESLint config now supports browser environment variable such as `IntersectionObserver` +- Updated: ESLint config now supports browser environment variables such as `IntersectionObserver` - Added: ability for table blocks to utilize the `overflow-x` set on them by setting a `min-width` property for the `table` element within the table block. - Updated: Enabled background images on the Group block; We should try to use this instead of the Cover block where diff --git a/wp-content/plugins/core/src/Core.php b/wp-content/plugins/core/src/Core.php index 7f8acf70..e13c99d3 100644 --- a/wp-content/plugins/core/src/Core.php +++ b/wp-content/plugins/core/src/Core.php @@ -23,11 +23,12 @@ class Core { * @var string[] Names of classes extending Abstract_Subscriber. */ private array $subscribers = [ - Settings\Settings_Subscriber::class, Assets\Assets_Subscriber::class, Blocks\Blocks_Subscriber::class, Integrations\Integrations_Subscriber::class, + Menus\Menu_Subscriber::class, Object_Meta\Meta_Subscriber::class, + Settings\Settings_Subscriber::class, Theme_Config\Theme_Config_Subscriber::class, // Post Types diff --git a/wp-content/plugins/core/src/Menus/Admin_Menu_Order.php b/wp-content/plugins/core/src/Menus/Admin_Menu_Order.php new file mode 100644 index 00000000..704dc2ed --- /dev/null +++ b/wp-content/plugins/core/src/Menus/Admin_Menu_Order.php @@ -0,0 +1,30 @@ +container->get( Admin_Menu_Order::class )->custom_menu_order(); + } ); + } + +} diff --git a/wp-content/plugins/core/src/Post_Types/Training/Config.php b/wp-content/plugins/core/src/Post_Types/Training/Config.php index b84ec23e..eaa13e59 100644 --- a/wp-content/plugins/core/src/Post_Types/Training/Config.php +++ b/wp-content/plugins/core/src/Post_Types/Training/Config.php @@ -29,9 +29,10 @@ public function get_args(): array { public function get_labels(): array { return [ - 'singular' => __( 'Training Doc', 'tribe' ), - 'plural' => __( 'Training Docs', 'tribe' ), - 'slug' => $this->post_type, + 'singular' => __( 'Training Doc', 'tribe' ), + 'plural' => __( 'Training Docs', 'tribe' ), + 'menu_name' => __( 'Training', 'tribe' ), + 'slug' => $this->post_type, ]; }