Changeset 6816

Show
Ignore:
Timestamp:
02/13/08 18:10:41 (9 months ago)
Author:
ryan
Message:

Fix add custom field redirects. Props pishmishy. fixes #2788

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/page.php

    r6770 r6816  
    111111        if ($_POST['save']) { 
    112112            $location = "page.php?action=edit&post=$page_ID"; 
    113         } elseif ($_POST['addemeta']) { 
     113        } elseif ($_POST['addmeta']) { 
    114114            $location = add_query_arg( 'message', 2, wp_get_referer() ); 
    115115            $location = explode('#', $location); 
  • trunk/wp-admin/post.php

    r6807 r6816  
    127127        $referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer()); 
    128128 
    129         if ($_POST['addemeta']) { 
     129        if ($_POST['addmeta']) { 
    130130            $location = add_query_arg( 'message', 2, wp_get_referer() ); 
    131131            $location = explode('#', $location);