WordPress.org

Make WordPress Core

Changeset 7509


Ignore:
Timestamp:
03/25/08 01:42:38 (6 years ago)
Author:
ryan
Message:

Fix addition of new meta keys when no meta keys currently exist. Props DD32. fixes #6343

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r7468 r7509  
    372372    $c = 0; 
    373373    $pid = (int) $_POST['post_id']; 
    374     if ( isset($_POST['metakeyselect']) ) { 
     374    if ( isset($_POST['metakeyselect']) || isset($_POST['metakeyinput']) ) { 
    375375        if ( !current_user_can( 'edit_post', $pid ) ) 
    376376            die('-1'); 
Note: See TracChangeset for help on using the changeset viewer.