Make WordPress Core

Changeset 6816


Ignore:
Timestamp:
02/13/2008 06:10:41 PM (16 years ago)
Author:
ryan
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.