Skip to content

Commit 18852cc

Browse files
author
David Ryan
committed
cleanup
1 parent 88134d4 commit 18852cc

File tree

4 files changed

+142
-109
lines changed

4 files changed

+142
-109
lines changed

app/admin/class-auth-assets.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ function __construct( $dir, $url, $version ) {
5050
/**
5151
* Register Assets
5252
*/
53-
add_action( 'App', array( $this, 'register_stylesheets' ) );
54-
add_action( 'App', array( $this, 'register_scripts' ) );
53+
$this->register_scripts();
54+
$this->register_stylesheets();
5555
}
5656

5757
/**

app/admin/class-toolkit-dashboard-page.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -122,31 +122,6 @@ function get_admin_cards() {
122122

123123
function localize_data() {
124124
$data = array();
125-
$data['status'] = array();
126-
127-
$constants = array(
128-
'SCRIPT_DEBUG', // disable script compression
129-
'WP_DEBUG',
130-
'WP_DEBUG_LOG',
131-
'WP_DEBUG_DISPLAY',
132-
'DISABLE_WP_CHRON',
133-
'WP_CRON_LOCK_TIMEOUT',
134-
'WP_MAX_MEMORY_LIMIT',
135-
'WP_MEMORY_LIMIT',
136-
'DB_CHARSET',
137-
'DB_COLLATE',
138-
'FS_CHMOD_DIR', // r/w perms for directories default 0755
139-
'FS_CHMOD_FILE', // r/w for files default 0644
140-
'FS_METHOD', // method of connection
141-
'FORCE_SSL_LOGIN',
142-
'FORCE_SSL_ADMIN',
143-
);
144-
145-
foreach( $constants as $constant ) {
146-
if ( defined( $constant ) ) {
147-
$data['status'][ $constant ] = constant( $constant );
148-
}
149-
}
150125

151126
$cards = $this->get_admin_cards();
152127
if ( ! empty( $cards ) && is_array( $cards ) ) {

0 commit comments

Comments
 (0)