Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

function maintenance_admin_setup() {
global $maintenance_variable;
$maintenance_variable->options_page = add_menu_page( __( 'Maintenance', 'maintenance' ), __( 'Maintenance', 'maintenance' ), 'manage_options', 'maintenance', 'manage_options', MAINTENANCE_URI . '/images/icon-small.png');
$maintenance_variable->options_page = add_menu_page( _x( 'Maintenance', 'Admin screen title', 'maintenance' ), _x( 'Maintenance', 'Admin screen title', 'maintenance' ), 'manage_options', 'maintenance', 'manage_options', MAINTENANCE_URI . '/images/icon-small.png');

add_action( "admin_init", 'mt_register_settings');
add_action( "admin_head-{$maintenance_variable->options_page}", 'maintenance_metaboxes_scripts' );
Expand Down
2 changes: 1 addition & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ function maintenance_add_toolbar_items(){
} else {
$check = 'Off';
}
$wp_admin_bar->add_menu( array( 'id' => 'maintenance_options', 'title' => __( 'Maintenance', 'maintenance' ) . __( ' is ', 'maintenance' ) . $check, 'href' => $url_to, 'meta' => array( 'title' => __( 'Maintenance', 'maintenance' ) . __( ' is ', 'maintenance' ) . $check)));
$wp_admin_bar->add_menu( array( 'id' => 'maintenance_options', 'title' => _x( 'Maintenance', 'Admin screen title', 'maintenance' ) . __( ' is ', 'maintenance' ) . $check, 'href' => $url_to, 'meta' => array( 'title' => _x( 'Maintenance', 'Admin screen title', 'maintenance' ) . __( ' is ', 'maintenance' ) . $check)));
}


Expand Down