This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Disable My Sites menu in toolbar for Super Admins & replace with custom menu | |
* Docs: http://codex.wordpress.org/Class_Reference/WP_Admin_Bar | |
*/ | |
function jpl_remove_my_sites( $wp_admin_bar ) { | |
if (current_user_can('manage_network')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(count($this->boxes) > 0) { | |
foreach($this->boxes as $box) { | |
$data = $_POST[$box['id']]; | |
if($box['type'] == 'editor') { | |
$data = wptexturize(wpautop($data)); | |
} | |
if($box['type'] == 'checkbox') { | |
if($data != 'true') { | |
$data = 'false'; |