[wp-trac] [WordPress Trac] #24889: Widget ID number in the database starts from 2
WordPress Trac
noreply at wordpress.org
Tue Jul 30 16:40:47 UTC 2013
#24889: Widget ID number in the database starts from 2
--------------------------+-----------------------------
Reporter: alexvorn2 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
Steps to replicate:
1. Fresh install of WordPress
2. print_r( get_option('sidebars_widgets') );
you will get this:
{{{
Array
(
[wp_inactive_widgets] => Array
(
)
[sidebar-1] => Array
(
[0] => search-2
[1] => recent-posts-2
[2] => recent-comments-2
[3] => archives-2
[4] => categories-2
[5] => meta-2
)
[sidebar-2] => Array
(
)
[array_version] => 3
)
}}}
I think instead 2 we should see 1 because no more widgets were created.
maybe be use 0 instead of 1, but not definitely 2.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24889>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list