[wp-trac] [WordPress Trac] #41686: Store Widgets in the Posts table
WordPress Trac
noreply at wordpress.org
Mon Aug 21 11:14:22 UTC 2017
#41686: Store Widgets in the Posts table
--------------------------+------------------------------------------
Reporter: spacedmonkey | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: performance |
--------------------------+------------------------------------------
Currently widgets are stored in the options table. They can be accessed
using WP_Widget. But storing it options has a number of drawbacks, most of
which is performance. Migrating the data to the posts table as a new post
type has a number of benefits.
- Revisions for widgets
- Author
- Date created / edited
- Trashing widgets
- Interact with widgets using the posts endpoint
- Easier migration of data using the wordpress exporter
- Post meta for widgets for better extending.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41686>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list