Plugin Directory

Changeset 2550358


Ignore:
Timestamp:
06/18/2021 11:14:12 AM (5 years ago)
Author:
pradeepsinghweb
Message:

tested upto 5.7.2

Location:
hide-wp-front-admin-bar/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • hide-wp-front-admin-bar/trunk/hide-wp-front-admin-bar.php

    r1632634 r2550358  
    33 * Plugin Name: Hide WP Front Admin Bar
    44 * Description: Hide WordPress Admin Bar, Hide admin bar for specific users role, Hide WordPress admin bar for all user role, Hide admin bar from front end, Remove admin bar
    5  * Version: 1.0.0
     5 * Version: 1.0.1
    66 * Author: Pradeep Singh
    77 * Author URI: https://github.com/pradeepsinghweb
     
    8989            $_hide_admin_bar_settings['_user_roles'] = $data['_user_roles'];
    9090            if($_hide_admin_bar_settings['_hide_admin_bar'] == 'ALL') unset($_hide_admin_bar_settings['_user_roles']);
    91             if(update_option('_hide_admin_bar_settings',serialize($_hide_admin_bar_settings)))
     91            if(get_option('_hide_admin_bar_settings') && update_option('_hide_admin_bar_settings',serialize($_hide_admin_bar_settings))){
    9292                return array('status'=>true,'msg'=>"Admin Bar settings have been saved successfully.");
    93             else
     93            }   
     94            elseif(get_option('_hide_admin_bar_settings',serialize($_hide_admin_bar_settings))){
     95                return array('status'=>true,'msg'=>"Admin Bar settings have been saved successfully.");
     96            }   
     97            else{
    9498                return array('status'=>false,'msg'=>"Error occurred! Admin Bar settings are not updated.");
     99            }
    95100        }
    96101        return array('status'=>false,'msg'=>"Error occurred!");
  • hide-wp-front-admin-bar/trunk/readme.txt

    r1632925 r2550358  
    33Donate link: https://www.paypal.me/pradeepsinghweb
    44Tags: adminbar, hide, hide WordPress admin bar, hide admin bar for specific users role, hide WordPress admin bar for all users, hide admin bar from front end, remove admin bar, hide WP admin bar
    5 Requires at least: 3.1
    6 Tested up to: 4.7.3
     5Requires at least: 3.5
     6Tested up to: 5.7.2
    77Stable tag: trunk
    88
Note: See TracChangeset for help on using the changeset viewer.