[wp-trac] [WordPress Trac] #53235: Ensure consistent type for integer properties of WP_Post, WP_Term, and WP_User
WordPress Trac
noreply at wordpress.org
Thu May 20 00:03:19 UTC 2021
#53235: Ensure consistent type for integer properties of WP_Post, WP_Term, and
WP_User
--------------------------------------+-----------------------------
Reporter: SergeyBiryukov | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-dev-note | Focuses:
--------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"50936" 50936]:
{{{
#!CommitTicketReference repository="" revision="50936"
General: Ensure consistent type for integer properties of a bookmark
object.
Previously, these properties could be unexpectedly converted to strings in
some contexts.
This applies to the following function:
* `sanitize_bookmark_field()`
and the following properties:
* `$bookmark::link_id`
* `$bookmark::link_rating`
Follow-up to [50935].
See #53235.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53235#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list