mirror of
https://github.com/WenPai-org/wpmind.git
synced 2025-08-03 19:19:46 +08:00
changed PHP arrays to []
This commit is contained in:
parent
5e6716e068
commit
1cac92d58f
8 changed files with 72 additions and 50 deletions
|
@ -17,7 +17,7 @@ class Mind_Admin {
|
|||
* Mind_Admin constructor.
|
||||
*/
|
||||
public function __construct() {
|
||||
add_action( 'admin_menu', array( $this, 'register_admin_menu' ), 20 );
|
||||
add_action( 'admin_menu', [ $this, 'register_admin_menu' ], 20 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -35,7 +35,7 @@ class Mind_Admin {
|
|||
esc_html__( 'Mind', 'mind' ),
|
||||
'manage_options',
|
||||
'mind',
|
||||
array( 'Mind_Settings', 'print_settings_page' ),
|
||||
[ 'Mind_Settings', 'print_settings_page' ],
|
||||
// phpcs:ignore
|
||||
'data:image/svg+xml;base64,' . base64_encode( file_get_contents( mind()->plugin_path . 'assets/images/admin-icon.svg' ) ),
|
||||
'58.7'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue