[wp-trac] [WordPress Trac] #22247: Ensure post ID evaluates to true before adding "Edit post" tab in admin bar

WordPress Trac noreply at wordpress.org
Fri Sep 2 03:51:02 UTC 2016


#22247: Ensure post ID evaluates to true before adding "Edit post" tab in admin bar
-------------------------------------------------+-------------------------
 Reporter:  Joe Anzalone                         |       Owner:
     Type:  defect (bug)                         |  SergeyBiryukov
 Priority:  normal                               |      Status:  closed
Component:  Toolbar                              |   Milestone:  4.7
 Severity:  normal                               |     Version:  3.1
 Keywords:  has-patch dev-feedback has-unit-     |  Resolution:  fixed
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------
Changes (by jorbin):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38508"]:
 {{{
 #!CommitTicketReference repository="" revision="38508"
 Toolbar: Add unit tests for edit links.

 When there is no post ID, there should be no edit link. This adds unit
 tests for it.

 Fixes #22247.
 Props akibjorklund.
 }}}

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


More information about the wp-trac mailing list