Plugin Directory

Changeset 2821803


Ignore:
Timestamp:
11/22/2022 12:41:39 AM (3 years ago)
Author:
jr00ck
Message:

Update to version 2.5.5 from GitHub

Location:
hide-wp-toolbar
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • hide-wp-toolbar/tags/2.5.5/hide-wp-toolbar.php

    r2680324 r2821803  
    44Plugin URI: http://blog.webguysaz.com/hide-wp-toolbar-wordpress-plugin/
    55Description: The plugin adds a clickable button to the right side of the WordPress Toolbar that will show or hide the bar with nice transitions.
    6 Version: 2.5.4
     6Version: 2.5.5
    77Author: Web Guys
    88Author URI: http://webguysaz.com
     
    5454    if(!is_admin() && is_user_logged_in()){
    5555        // Register the style for plugin
    56         wp_enqueue_style( 'hide-wp-toolbar-style', plugins_url( 'style.css', __FILE__ ), array('dashicons'), '2.5.4'  );
     56        wp_enqueue_style( 'hide-wp-toolbar-style', plugins_url( 'style.css', __FILE__ ), array('dashicons'), '2.5.5'  );
    5757    }
    5858}
     
    131131function HWPTB_ajax_submit() {
    132132
    133     if(!is_admin() && is_user_logged_in()){
     133    if(is_user_logged_in()){
     134        header( "Content-Type: application/json" );
     135
    134136        $nonce = $_POST['ajax_nonce'];
    135137
     
    139141        }
    140142
    141         // ignore the request if the current user isn't logged in
    142         if ( is_user_logged_in() ) {
     143        // get the submitted parameters
     144        $toolbar_class = $_POST['toolbar_class'];
    143145
    144             // get the submitted parameters
    145             $toolbar_class = $_POST['toolbar_class'];
     146        hide_wp_toolbar_set($toolbar_class);
    146147
    147             hide_wp_toolbar_set($toolbar_class);
     148        // generate the response (WITH NEW NONCE VALUE?)
     149        // $response = json_encode( array( 'toolbar_class' => $toolbar_class ) );
    148150
    149             // generate the response (WITH NEW NONCE VALUE?)
    150             // $response = json_encode( array( 'toolbar_class' => $toolbar_class ) );
     151        // response output
     152        // header( "Content-Type: application/json" );
     153        // echo $response;
    151154
    152             // response output
    153             // header( "Content-Type: application/json" );
    154             // echo $response;
    155 
    156         }
    157155        // IMPORTANT: don't forget to "exit"
    158156        exit;
  • hide-wp-toolbar/tags/2.5.5/readme.txt

    r2680324 r2821803  
    55Tags: hide, toolbar, minimize, admin bar, toggle, adminbar
    66Requires at least: 3.8
    7 Tested up to: 5.9
     7Tested up to: 6.1
    88Stable tag: 2.5.4
    99
  • hide-wp-toolbar/trunk/hide-wp-toolbar.php

    r2680324 r2821803  
    44Plugin URI: http://blog.webguysaz.com/hide-wp-toolbar-wordpress-plugin/
    55Description: The plugin adds a clickable button to the right side of the WordPress Toolbar that will show or hide the bar with nice transitions.
    6 Version: 2.5.4
     6Version: 2.5.5
    77Author: Web Guys
    88Author URI: http://webguysaz.com
     
    5454    if(!is_admin() && is_user_logged_in()){
    5555        // Register the style for plugin
    56         wp_enqueue_style( 'hide-wp-toolbar-style', plugins_url( 'style.css', __FILE__ ), array('dashicons'), '2.5.4'  );
     56        wp_enqueue_style( 'hide-wp-toolbar-style', plugins_url( 'style.css', __FILE__ ), array('dashicons'), '2.5.5'  );
    5757    }
    5858}
     
    131131function HWPTB_ajax_submit() {
    132132
    133     if(!is_admin() && is_user_logged_in()){
     133    if(is_user_logged_in()){
     134        header( "Content-Type: application/json" );
     135
    134136        $nonce = $_POST['ajax_nonce'];
    135137
     
    139141        }
    140142
    141         // ignore the request if the current user isn't logged in
    142         if ( is_user_logged_in() ) {
     143        // get the submitted parameters
     144        $toolbar_class = $_POST['toolbar_class'];
    143145
    144             // get the submitted parameters
    145             $toolbar_class = $_POST['toolbar_class'];
     146        hide_wp_toolbar_set($toolbar_class);
    146147
    147             hide_wp_toolbar_set($toolbar_class);
     148        // generate the response (WITH NEW NONCE VALUE?)
     149        // $response = json_encode( array( 'toolbar_class' => $toolbar_class ) );
    148150
    149             // generate the response (WITH NEW NONCE VALUE?)
    150             // $response = json_encode( array( 'toolbar_class' => $toolbar_class ) );
     151        // response output
     152        // header( "Content-Type: application/json" );
     153        // echo $response;
    151154
    152             // response output
    153             // header( "Content-Type: application/json" );
    154             // echo $response;
    155 
    156         }
    157155        // IMPORTANT: don't forget to "exit"
    158156        exit;
  • hide-wp-toolbar/trunk/readme.txt

    r2680324 r2821803  
    55Tags: hide, toolbar, minimize, admin bar, toggle, adminbar
    66Requires at least: 3.8
    7 Tested up to: 5.9
     7Tested up to: 6.1
    88Stable tag: 2.5.4
    99
Note: See TracChangeset for help on using the changeset viewer.