[wp-trac] [WordPress Trac] #39108: Media: can't leave an image "untitled" from the "Edit Media" menu

WordPress Trac noreply at wordpress.org
Sun Jan 7 09:31:39 UTC 2018


#39108: Media: can't leave an image "untitled" from the "Edit Media" menu
-------------------------------------------------+-------------------------
 Reporter:  dromero20                            |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Media                                |  Review
 Severity:  normal                               |     Version:  4.6.1
 Keywords:  good-first-bug has-patch needs-      |  Resolution:
  testing                                        |     Focuses:
-------------------------------------------------+-------------------------
Changes (by Junaidkbr):

 * keywords:  needs-patch good-first-bug => good-first-bug has-patch needs-
     testing


Comment:

 @desrosj My patch takes care of the issue but I had trouble sending the
 auto generated title back to the media modal.

 My patch has changes in
 https://core.trac.wordpress.org/browser/tags/4.9/src/wp-admin/includes
 /ajax-actions.php#L2516 where I am returning `wp_send_json_success(
 $json_data );` with `$json_data = array( 'title' => $new_title );`. But I
 have no clue how to get it from the AJAX response at
 https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/js/media-
 views.js?rev=42198#L6331

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39108#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list