Skip to content

Commit

Permalink
remove setting for remove from admin bar awesomemotive#513
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltorbert committed Oct 8, 2016
1 parent f42161d commit e7f7851
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions aioseop_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ function __construct() {
'cpostactive' => __( 'Use these checkboxes to select which Post Types you want to use All in One SEO Pack with.', 'all-in-one-seo-pack' ),
'taxactive' => __( 'Use these checkboxes to select which Taxonomies you want to use All in One SEO Pack with.', 'all-in-one-seo-pack' ),
'cposttitles' => __( 'This allows you to set the title tags for each Custom Post Type.', 'all-in-one-seo-pack' ),
'admin_bar' => __( 'Check this to add All in One SEO Pack to the Admin Bar for easy access to your SEO settings.', 'all-in-one-seo-pack' ),
'custom_menu_order' => __( 'Check this to move the All in One SEO Pack menu item to the top of your WordPress Dashboard menu.', 'all-in-one-seo-pack' ),
'google_verify' => __( "Enter your verification code here to verify your site with Google Webmaster Tools.<br /><a href='http://semperplugins.com/documentation/google-webmaster-tools-verification/' target='_blank'>Click here for documentation on this setting</a>", 'all-in-one-seo-pack' ),
'bing_verify' => __( "Enter your verification code here to verify your site with Bing Webmaster Tools.<br /><a href='http://semperplugins.com/documentation/bing-webmaster-verification/' target='_blank'>Click here for documentation on this setting</a>", 'all-in-one-seo-pack' ),
Expand Down Expand Up @@ -269,7 +268,6 @@ function __construct() {
'cpostactive' => '#seo-on-only-these-post-types',
'taxactive' => '#seo-on-only-these-taxonomies',
'cposttitles' => '#custom-titles',
'admin_bar' => '#display-menu-in-admin-bar',
'custom_menu_order' => '#display-menu-at-the-top',
'google_verify' => '',
'bing_verify' => '',
Expand Down Expand Up @@ -582,10 +580,6 @@ function __construct() {
'aiosp_cpostadvanced' => 'on',
),
),
'admin_bar' => array(
'name' => __( 'Display Menu In Admin Bar:', 'all-in-one-seo-pack' ),
'default' => 'on',
),
'custom_menu_order' => array(
'name' => __( 'Display Menu At The Top:', 'all-in-one-seo-pack' ),
'default' => 'on',
Expand Down Expand Up @@ -1093,7 +1087,7 @@ function __construct() {
'display' => array(
'name' => __( 'Display Settings', 'all-in-one-seo-pack' ),
'help_link' => 'http://semperplugins.com/documentation/display-settings/',
'options' => array( 'admin_bar', 'custom_menu_order' ),
'options' => array( 'custom_menu_order' ),
),
'webmaster' => array(
'name' => __( 'Webmaster Verification', 'all-in-one-seo-pack' ),
Expand Down Expand Up @@ -4473,17 +4467,8 @@ function get_metabox_header( $tabs ) {
}

function admin_bar_menu() {
global $wp_admin_bar, $aioseop_admin_menu, $aioseop_options, $post;

$toggle = '';
if ( isset( $_POST['aiosp_use_original_title'] ) && isset( $_POST['aiosp_admin_bar'] ) ) {
$toggle = 'on';
}
if ( isset( $_POST['aiosp_use_original_title'] ) && ! isset( $_POST['aiosp_admin_bar'] ) ) {
$toggle = 'off';
}
global $wp_admin_bar, $aioseop_admin_menu, $post;

if ( ! empty( $aioseop_options['aiosp_admin_bar'] ) && $toggle != 'off' || isset( $_POST['aiosp_admin_bar'] ) ) {
$menu_slug = plugin_basename( __FILE__ );

$url = '';
Expand Down Expand Up @@ -4528,7 +4513,6 @@ function admin_bar_menu() {
) );
}
}
}
}

/**
Expand Down

0 comments on commit e7f7851

Please sign in to comment.