WordPress.org

Make WordPress Core

Ticket #5359: 5359.patch

File 5359.patch, 1.1 KB (added by sembee, 8 years ago)
  • wp-includes/js/autosave.js

     
    131131        autosaveAjax.setVar("post_ID", $("post_ID").value); 
    132132        autosaveAjax.setVar("post_title", form.post_title.value); 
    133133        autosaveAjax.setVar("post_type", form.post_type.value); 
     134        autosaveAjax.setVar("tags_input", form.tags_input.value); 
    134135        if ( form.comment_status.checked ) 
    135136                autosaveAjax.setVar("comment_status", 'open'); 
    136137        if ( form.ping_status.checked ) 
  • wp-admin/admin-ajax.php

     
    388388        $_POST['post_excerpt'] = $_POST['excerpt']; 
    389389        $_POST['post_status'] = 'draft'; 
    390390        $_POST['post_category'] = explode(",", $_POST['catslist']); 
     391        $_POST['tags_input'] = explode(",", $_POST['tags_input']); 
    391392        if($_POST['post_type'] == 'page' || empty($_POST['post_category'])) 
    392393                unset($_POST['post_category']);