[wp-trac] [WordPress Trac] #29320: Bulk edit on custom post types without title support

WordPress Trac noreply at wordpress.org
Fri Aug 22 14:48:14 UTC 2014


#29320: Bulk edit on custom post types without title support
-----------------------------+-----------------------------
 Reporter:  alexfecke        |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Quick/Bulk Edit  |    Version:  3.9.2
 Severity:  normal           |   Keywords:
  Focuses:  administration   |
-----------------------------+-----------------------------
 I have a custom content type that does not support titles. When I want to
 use bulk edit on this custom post type on edit.php, the area where the
 post titles should show up stays empty (instead of showing something like
 "auto draft").

 This is due to includes/class-wp-posts-list-table.php:925 where it is
 checked whether the post type supports titles.
 However I have a custom filter for the_title, which generates post titles
 dependent on custom fields. In order to let them show up in the bulk edit
 form, one would have to change for one class-wp-posts-list-table.php to
 allow post types without title support and one would additionally have to
 change includes/template.php:311 to use get_the_title($post->ID) instead
 of $post->post_title to insert the correct titles into the hidden fields
 in the edit.php-table.

 Of course I could also store my custom titles in post_title and hide the
 title field from view in my custom post type, but I think this to be a
 rather hackish way...

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29320>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list