Changeset 2821803
- Timestamp:
- 11/22/2022 12:41:39 AM (3 years ago)
- Location:
- hide-wp-toolbar
- Files:
-
- 4 edited
- 1 copied
-
tags/2.5.5 (copied) (copied from hide-wp-toolbar/trunk)
-
tags/2.5.5/hide-wp-toolbar.php (modified) (4 diffs)
-
tags/2.5.5/readme.txt (modified) (1 diff)
-
trunk/hide-wp-toolbar.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hide-wp-toolbar/tags/2.5.5/hide-wp-toolbar.php
r2680324 r2821803 4 4 Plugin URI: http://blog.webguysaz.com/hide-wp-toolbar-wordpress-plugin/ 5 5 Description: 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. 46 Version: 2.5.5 7 7 Author: Web Guys 8 8 Author URI: http://webguysaz.com … … 54 54 if(!is_admin() && is_user_logged_in()){ 55 55 // 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' ); 57 57 } 58 58 } … … 131 131 function HWPTB_ajax_submit() { 132 132 133 if(!is_admin() && is_user_logged_in()){ 133 if(is_user_logged_in()){ 134 header( "Content-Type: application/json" ); 135 134 136 $nonce = $_POST['ajax_nonce']; 135 137 … … 139 141 } 140 142 141 // ignore the request if the current user isn't logged in142 if ( is_user_logged_in() ) {143 // get the submitted parameters 144 $toolbar_class = $_POST['toolbar_class']; 143 145 144 // get the submitted parameters 145 $toolbar_class = $_POST['toolbar_class']; 146 hide_wp_toolbar_set($toolbar_class); 146 147 147 hide_wp_toolbar_set($toolbar_class); 148 // generate the response (WITH NEW NONCE VALUE?) 149 // $response = json_encode( array( 'toolbar_class' => $toolbar_class ) ); 148 150 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; 151 154 152 // response output153 // header( "Content-Type: application/json" );154 // echo $response;155 156 }157 155 // IMPORTANT: don't forget to "exit" 158 156 exit; -
hide-wp-toolbar/tags/2.5.5/readme.txt
r2680324 r2821803 5 5 Tags: hide, toolbar, minimize, admin bar, toggle, adminbar 6 6 Requires at least: 3.8 7 Tested up to: 5.97 Tested up to: 6.1 8 8 Stable tag: 2.5.4 9 9 -
hide-wp-toolbar/trunk/hide-wp-toolbar.php
r2680324 r2821803 4 4 Plugin URI: http://blog.webguysaz.com/hide-wp-toolbar-wordpress-plugin/ 5 5 Description: 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. 46 Version: 2.5.5 7 7 Author: Web Guys 8 8 Author URI: http://webguysaz.com … … 54 54 if(!is_admin() && is_user_logged_in()){ 55 55 // 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' ); 57 57 } 58 58 } … … 131 131 function HWPTB_ajax_submit() { 132 132 133 if(!is_admin() && is_user_logged_in()){ 133 if(is_user_logged_in()){ 134 header( "Content-Type: application/json" ); 135 134 136 $nonce = $_POST['ajax_nonce']; 135 137 … … 139 141 } 140 142 141 // ignore the request if the current user isn't logged in142 if ( is_user_logged_in() ) {143 // get the submitted parameters 144 $toolbar_class = $_POST['toolbar_class']; 143 145 144 // get the submitted parameters 145 $toolbar_class = $_POST['toolbar_class']; 146 hide_wp_toolbar_set($toolbar_class); 146 147 147 hide_wp_toolbar_set($toolbar_class); 148 // generate the response (WITH NEW NONCE VALUE?) 149 // $response = json_encode( array( 'toolbar_class' => $toolbar_class ) ); 148 150 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; 151 154 152 // response output153 // header( "Content-Type: application/json" );154 // echo $response;155 156 }157 155 // IMPORTANT: don't forget to "exit" 158 156 exit; -
hide-wp-toolbar/trunk/readme.txt
r2680324 r2821803 5 5 Tags: hide, toolbar, minimize, admin bar, toggle, adminbar 6 6 Requires at least: 3.8 7 Tested up to: 5.97 Tested up to: 6.1 8 8 Stable tag: 2.5.4 9 9
Note: See TracChangeset
for help on using the changeset viewer.