[wp-trac] [WordPress Trac] #34113: Add a 'View Archive' link to admin bar for post types.

WordPress Trac noreply at wordpress.org
Mon Sep 5 17:09:40 UTC 2016


#34113: Add a 'View Archive' link to admin bar for post types.
---------------------------------------+-----------------------------
 Reporter:  paulwilde                  |       Owner:
     Type:  enhancement                |      Status:  new
 Priority:  normal                     |   Milestone:  4.7
Component:  Toolbar                    |     Version:  4.4
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch has-screenshots  |     Focuses:  administration
---------------------------------------+-----------------------------

Comment (by akibjorklund):

 @swissspidy: What is the purpose of setting the current screen to `front`
 before the assertions? Since `$wp_admin_bar->get_node()` will clone the
 node, there should not be any effect on the content of the node.

 Oh and renaming `$node_view` variables to `$node_archive` to match the
 change in node ID would make sense.

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


More information about the wp-trac mailing list