WordPress.org

Make WordPress Core

Ticket #6343: 6343.2.diff

File 6343.2.diff, 551 bytes (added by DD32, 10 years ago)
  • wp-admin/admin-ajax.php

     
    371371        check_ajax_referer( 'add-meta' );
    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');
    377377                if ( '#NONE#' == $_POST['metakeyselect'] && empty($_POST['metakeyinput']) )