mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
Really making the default theme notice free.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e2acb46b6c
commit
e2f66cbb1d
@ -80,8 +80,8 @@ function kubrick_header_display_string() {
|
|||||||
add_action('admin_menu', 'kubrick_add_theme_page');
|
add_action('admin_menu', 'kubrick_add_theme_page');
|
||||||
|
|
||||||
function kubrick_add_theme_page() {
|
function kubrick_add_theme_page() {
|
||||||
if ( array_key_exists( 'page', $_GET ) && $_GET['page'] == basename(__FILE__) ) {
|
if ( isset( $_GET['page'] ) && $_GET['page'] == basename(__FILE__) ) {
|
||||||
if ( 'save' == $_REQUEST['action'] ) {
|
if ( isset( $_REQUEST['action'] ) && 'save' == $_REQUEST['action'] ) {
|
||||||
check_admin_referer('kubrick-header');
|
check_admin_referer('kubrick-header');
|
||||||
if ( isset($_REQUEST['njform']) ) {
|
if ( isset($_REQUEST['njform']) ) {
|
||||||
if ( isset($_REQUEST['defaults']) ) {
|
if ( isset($_REQUEST['defaults']) ) {
|
||||||
@ -354,7 +354,7 @@ function kubrick_theme_page_head() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function kubrick_theme_page() {
|
function kubrick_theme_page() {
|
||||||
if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.__('Options saved.').'</strong></p></div>';
|
if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated fade"><p><strong>'.__('Options saved.').'</strong></p></div>';
|
||||||
?>
|
?>
|
||||||
<div class='wrap'>
|
<div class='wrap'>
|
||||||
<div id="kubrick-header">
|
<div id="kubrick-header">
|
||||||
|
Loading…
Reference in New Issue
Block a user