| @@ -70,9 +70,9 @@ | ||
| 70 | 70 | wp_enqueue_script('frame-adminify--admin', PXLBSADMINIFY_ASSETS . 'admin/js/frame' . Utils::assets_ext('.js'), ['jquery', 'react'], PXLBSADMINIFY_VER, true); |
| 71 | 71 | |
| 72 | 72 | $localize_array_data = [ |
| 73 | 73 | 'ajax_url' => admin_url('admin-ajax.php'), |
| 74 | - 'security_nonce' => wp_create_nonce('pxlbsadminify_frame_nonce') | |
| 74 | + 'security_nonce' => wp_create_nonce('adminify_nonce') | |
| 75 | 75 | ]; |
| 76 | 76 | |
| 77 | 77 | wp_localize_script( 'frame-adminify--admin', 'PXLBSADMINIFY_FRAME', $localize_array_data ); |
| 78 | 78 | wp_localize_script( 'frame-adminify--admin', 'PXLBSADMINIFY_FRAME_NOT_ALLOWED_URLS', self::get_not_allowed_urls() ); |
| @@ -183,14 +183,8 @@ | ||
| 183 | 183 | * @return void |
| 184 | 184 | */ |
| 185 | 185 | public function load_template() |
| 186 | 186 | { |
| 187 | - // async-upload.php & friends fire admin_init but answer with a raw payload, | |
| 188 | - // so the frame markup would be read as part of the response. | |
| 189 | - if ( ! Utils::is_admin_page_request() ) { | |
| 190 | - return; | |
| 191 | - } | |
| 192 | - | |
| 193 | 187 | Utils::load_template('Templates.php'); |
| 194 | 188 | } |
| 195 | 189 | |
| 196 | 190 | public function capture_wp_menu($parent_file) |
| @@ -272,9 +266,9 @@ | ||
| 272 | 266 | $admin_bar_menu_data = []; |
| 273 | 267 | |
| 274 | 268 | // Admin Bar Exits |
| 275 | 269 | if ( Utils::is_plugin_active('admin-bar/admin-bar.php') ) { |
| 276 | - $admin_bar_items = get_option('_jltadminbar_settings'); | |
| 270 | + $admin_bar_items = get_option('pxlbsadminify_adminbar_settings'); | |
| 277 | 271 | |
| 278 | 272 | // Only build the customized admin bar when settings exist. |
| 279 | 273 | // Otherwise fall through so the default admin bar data is still |
| 280 | 274 | // printed and `adminify_admin_bar_data` is always defined. |