Make WordPress Core


Ignore:
Timestamp:
12/28/2007 11:02:13 PM (16 years ago)
Author:
westi
Message:

Really making the default theme notice free.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/functions.php

    r6518 r6519  
    8181
    8282function kubrick_add_theme_page() {
    83     if ( array_key_exists( 'page', $_GET ) && $_GET['page'] == basename(__FILE__) ) {
    84         if ( 'save' == $_REQUEST['action'] ) {
     83    if ( isset( $_GET['page'] ) && $_GET['page'] == basename(__FILE__) ) {
     84        if ( isset( $_REQUEST['action'] ) && 'save' == $_REQUEST['action'] ) {
    8585            check_admin_referer('kubrick-header');
    8686            if ( isset($_REQUEST['njform']) ) {
     
    355355
    356356function kubrick_theme_page() {
    357     if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.__('Options saved.').'</strong></p></div>';
     357    if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated fade"><p><strong>'.__('Options saved.').'</strong></p></div>';
    358358?>
    359359<div class='wrap'>
Note: See TracChangeset for help on using the changeset viewer.