User Tools

Site Tools


guides:wordpress:adminmenubar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
guides:wordpress:adminmenubar [2016/06/25 01:37]
michaelc
guides:wordpress:adminmenubar [2016/06/28 11:09]
michaelc
Line 42: Line 42:
    if ($adminbar!='​true'​) {    if ($adminbar!='​true'​) {
      ​add_filter( '​show_admin_bar',​ '​__return_false'​);​      ​add_filter( '​show_admin_bar',​ '​__return_false'​);​
-   } else { 
-?> 
- 
-<style type="​text/​css"​ media="​screen">​ 
- html { margin-top: 28px !important; } 
- * html body { margin-top: 28px !important; } 
-</​style>​ 
-<?php 
    }    }
  
Line 66: Line 58:
  
       if (($adminbar!='​true'​) && ($is_editor)) {       if (($adminbar!='​true'​) && ($is_editor)) {
-         wp_redirect(home_url(add_query_arg( '​adminbar',​ '​true'​ )));+         wp_safe_redirect(home_url(add_query_arg( '​adminbar',​ '​true'​ )));
          ​exit();​          ​exit();​
       }       }
guides/wordpress/adminmenubar.txt · Last modified: 2016/06/28 11:09 by michaelc