[wp-trac] [WordPress Trac] #51699: The only correct method to check for existence of option

WordPress Trac noreply at wordpress.org
Wed Nov 4 07:55:04 UTC 2020


#51699: The only correct method to check for existence of option
--------------------------------+------------------------------
 Reporter:  ttodua              |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+------------------------------

Comment (by ttodua):

 @apedog well, select 1 might be good also, i am not SQL master, you might
 adopt that. Just found in internet, that the method i posted is fastest
 among others, however, you can tell your thoughts.


 @SergeyBiryukov  thanks, but the $default option is not even related to
 this ticket. the ticket is about "existence" of option (nevertheless it's
 value, let it be string, boolean, or whatever, even no-one knows what
 value specific option might have, string, bool, or whatever). So, your
 offered one is not related to the problem directly, and doesn't solve it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51699#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list