[wp-trac] [WordPress Trac] #39826: LIMIT clause not required in get_options function as there's already a UNIQUE KEY on option_name
WordPress Trac
noreply at wordpress.org
Thu May 7 19:31:10 UTC 2020
#39826: LIMIT clause not required in get_options function as there's already a
UNIQUE KEY on option_name
-----------------------------------+------------------------------
Reporter: arjenlentz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 4.7.2
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch | Focuses:
-----------------------------------+------------------------------
Changes (by esoj):
* keywords: 2nd-opinion needs-patch => 2nd-opinion has-patch
Comment:
Contributed a patch, builds nicely against trunk.
There is a good coverage of this by Unit tests in option/option.php.
N.B. However I do not have any knowledge regarding if there is any
hstorical reasons for this, so 2nd-opinion still needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39826#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list