This file contains 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
$md_http = ($_SERVER['HTTPS']) ? 'https://': 'http://'; | |
// MD: Note that $_SERVER['DOCUMENT_ROOT'] will return a string with a trailing slash on | |
// some systems and not others, so we'll make sure it's gone in all cases where there | |
// is ambiguity by using rtrim | |
define('WP_CONTENT_DIR', rtrim($_SERVER['DOCUMENT_ROOT'],"/") . '/wp-content'); | |
define('WP_CONTENT_URL', $md_http . rtrim($_SERVER['SERVER_NAME'],"/") . '/wp-content'); |
This file contains 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
add_action( 'admin_menu', 'md_change_post_menu_label' ); | |
function md_change_post_menu_label() { | |
global $menu; | |
global $submenu; | |
$menu[5][0] = 'Articles'; | |
$submenu['edit.php'][10][0] = 'Add Article'; | |
} |
NewerOlder