[wp-trac] [WordPress Trac] #53427: Widget preview not working if widget registered via a instance

WordPress Trac noreply at wordpress.org
Tue Jun 22 16:44:16 UTC 2021


#53427: Widget preview not working if widget registered via a instance
--------------------------+-------------------------
 Reporter:  spacedmonkey  |       Owner:  noisysocks
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  5.8
Component:  REST API      |     Version:  trunk
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |     Focuses:  rest-api
--------------------------+-------------------------

Comment (by spacedmonkey):

 @zieladam This patch doesn't fix function based widgets. It fixes an issue
 when if you pass an WP_Widget instance to register_widget it would not
 work.

 I found this via a plugin I worked on called
 [https://wordpress.org/plugins/web-stories/ web-stories]. See how we
 [https://github.com/google/web-stories-
 wp/blob/516748ece5ae104d7a7caf91916d6d3ba38b7ffa/includes/Register_Widget.php#L34-L62
 register] our widget.

 If you install our plugin, 1.8.0 or high you can help test.

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


More information about the wp-trac mailing list