mirror of
https://ghproxy.net/https://github.com/abhijitb/helix.git
synced 2025-08-28 06:26:00 +08:00
updated react app and API backend
1. Added API backend for settings 2. Added React components for the settings page 3. Added JS lint using @wordpress/scripts 4. Lint fixes for PHP
This commit is contained in:
parent
38067e490a
commit
e80316be89
36 changed files with 45313 additions and 1736 deletions
|
@ -127,8 +127,16 @@ add_action(
|
|||
return;
|
||||
}
|
||||
|
||||
// Check if we're already on the helix page or WordPress admin page.
|
||||
if ( in_array( $current_screen->id, array( 'toplevel_page_helix', 'toplevel_page_wordpress-admin' ), true ) ) {
|
||||
// Check if we're already on any Helix page or WordPress admin page.
|
||||
$helix_pages = array(
|
||||
'toplevel_page_helix',
|
||||
'toplevel_page_helix-posts',
|
||||
'toplevel_page_helix-users',
|
||||
'toplevel_page_helix-settings',
|
||||
'toplevel_page_wordpress-admin',
|
||||
);
|
||||
|
||||
if ( in_array( $current_screen->id, $helix_pages, true ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue