[wp-trac] [WordPress Trac] #34825: Impossible to set a default ordering for custom post types (on the admin screen)

WordPress Trac noreply at wordpress.org
Thu Dec 3 19:51:41 UTC 2015


#34825: Impossible to set a default ordering for custom post types (on the admin
screen)
-------------------------------------------------+-------------------------
 Reporter:  stephenharris                        |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  4.4
Component:  Posts, Post Types                    |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:
  testing                                        |  administration
-------------------------------------------------+-------------------------

Comment (by stephenharris):

 @johnbillion I'd be happy to, but I don't think this can be covered by
 (php)unit testing(?). The default value of the query is only being set on
 the posts screen. It could be tested by something like Behat, but that
 would be a considerable undertaking.

 (Incidentally I'm working on a Behat 'library' for WordPress, in fact an
 extension of your Behat plug-in, with a view that it could be used for
 testing core (and plug-ins) alike - but that would be another ticket).

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


More information about the wp-trac mailing list