[wp-trac] [WordPress Trac] #42548: Widgets: Populate global $post with queried object on singular queries instead of nullifying it

WordPress Trac noreply at wordpress.org
Tue Nov 14 20:27:59 UTC 2017


#42548: Widgets: Populate global $post with queried object on singular queries
instead of nullifying it
-------------------------------------+------------------
 Reporter:  westonruter              |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.9
Component:  Widgets                  |     Version:  4.9
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------

Comment (by bobbingwide):

 Manually tested with posts with and without attached images. Widgets in
 the primary sidebar include a Custom HTML widget containing [gallery] and
 a Text widget containing the same shortcode.
 The posts also contain the [gallery] shortcode.
 One of the posts contains a [gallery id=0] shortcode.

 When viewing the home page archive the widgets are empty.

 When viewing a singular post the widgets show the attached images.

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


More information about the wp-trac mailing list