[wp-trac] [WordPress Trac] #56944: get_option does not return expected value
WordPress Trac
noreply at wordpress.org
Fri Nov 4 13:59:51 UTC 2022
#56944: get_option does not return expected value
--------------------------------+------------------------------
Reporter: planvova | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: 6.0.2
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------------+------------------------------
Comment (by planvova):
@sabernhardt Thank you. Can you please also change values
`_wp_session_f5f8546504975ed39fb121b6b1b7c829` to
`_wp_session_5c1f3b8058ca4b6cf9e637c31300bc23` in original comment? I
can't edit it and I wrote a wrong session_id.
So for all requests I used option
`_wp_session_5c1f3b8058ca4b6cf9e637c31300bc23`,
this one `_wp_session_f5f8546504975ed39fb121b6b1b7c829` is wrong(typo).
--------------
Also I noticed that at the same time we have value for
`$notoptions = wp_cache_get( 'notoptions', 'options' );`
`$notoptions['_wp_session_5c1f3b8058ca4b6cf9e637c31300bc23'] = 1;`
And for
` wp_cache_get( "_wp_session_5c1f3b8058ca4b6cf9e637c31300bc23", 'options'
);`
it has correct data.
But if I checked code in options.php file - when it sets cache for
`_wp_session_5c1f3b8058ca4b6cf9e637c31300bc23` then it removes
`$notoptions['_wp_session_5c1f3b8058ca4b6cf9e637c31300bc23']` and updates
`notoptions`
So I guess this situation must not happen.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56944#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list