Skip to content

Commit

Permalink
fix: Fixed an issue where the link to design was incorrect due to oth…
Browse files Browse the repository at this point in the history
…er updates
  • Loading branch information
aaronware committed Oct 9, 2020
1 parent f812325 commit 063b88f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/Admin/Settings/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ public function show_design_sub_settings( $options ) {
public function add_admin_menu() {
global $submenu;

$design = admin_url( 'edit.php?post_type=courier_notice&page=courier&tab=design' );
$design = admin_url( 'edit.php?post_type=courier_notice&page=courier&tab=design&subtab=global' );

$submenu['edit.php?post_type=courier_notice'][] = array( esc_html__( 'Types/Design', 'courier-notices' ), 'manage_options', esc_url( $design ) ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
$submenu['edit.php?post_type=courier_notice'][] = array( esc_html__( 'Design Studio', 'courier-notices' ), 'manage_options', esc_url( $design ) ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited

add_submenu_page( 'edit.php?post_type=courier_notice', COURIER_NOTICES_PLUGIN_NAME, esc_html__( 'Settings', 'courier-notices' ), 'manage_options', self::$settings_page, array( __CLASS__, 'add_settings_page' ) );
}
Expand Down

0 comments on commit 063b88f

Please # to comment.