[wp-trac] [WordPress Trac] #35669: Store widgets in a custom post type instead of options

WordPress Trac noreply at wordpress.org
Thu Jun 6 09:33:30 UTC 2024


#35669: Store widgets in a custom post type instead of options
--------------------------+------------------------------
 Reporter:  westonruter   |       Owner:  (none)
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Widgets       |     Version:  2.8
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+------------------------------

Comment (by oglekler):

 I wonder if this is the time to raise this question again. Right now, new
 widgets are stored as autoloaded options, and they have no revisions and
 no publish date or modified date. Disadvantage will be in additional
 request to the DB if the widget is needed, but if we don't need it, there
 will be no requests and no autoloaded option.

 The New Widgets editor is quite flexible with blocks with several
 restrictions, like the inability to add patterns there (and this is not
 very convenient either), but due to this flexibility, each widget needs at
 least revisions (and better to have drafts) - it is so simple to ruin the
 work or publish a half-finished widget.

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


More information about the wp-trac mailing list