WordPress.org

Make WordPress Core

Changeset 9570


Ignore:
Timestamp:
11/08/08 11:18:05 (7 years ago)
Author:
azaozz
Message:

Few more notice fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r9556 r9570  
    500500    $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug', '_wp_page_template' ); 
    501501 
    502     $metakeyselect = stripslashes( trim( $_POST['metakeyselect'] ) ); 
    503     $metakeyinput = stripslashes( trim( $_POST['metakeyinput'] ) ); 
    504     $metavalue = maybe_serialize( stripslashes( trim( $_POST['metavalue'] ) ) ); 
     502    $metakeyselect = isset($_POST['metakeyselect']) ? stripslashes( trim( $_POST['metakeyselect'] ) ) : ''; 
     503    $metakeyinput = isset($_POST['metakeyinput']) ? stripslashes( trim( $_POST['metakeyinput'] ) ) : ''; 
     504    $metavalue = isset($_POST['metavalue']) ? maybe_serialize( stripslashes( trim( $_POST['metavalue'] ) ) ) : ''; 
    505505 
    506506    if ( ('0' === $metavalue || !empty ( $metavalue ) ) && ((('#NONE#' != $metakeyselect) && !empty ( $metakeyselect) ) || !empty ( $metakeyinput) ) ) { 
Note: See TracChangeset for help on using the changeset viewer.