[wp-trac] [WordPress Trac] #32565: Adding an underscore prefix meta key with a meta value provides an incorrect error message

WordPress Trac noreply at wordpress.org
Thu Aug 15 04:38:32 UTC 2019


#32565: Adding an underscore prefix meta key with a meta value provides an
incorrect error message
--------------------------------------+-----------------------------
 Reporter:  danielpataki              |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:
Component:  Options, Meta APIs        |     Version:  4.3
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by donmhico):

 * keywords:  has-patch needs-unit-tests => has-patch has-unit-tests


Comment:

 In my attached patch,
 [https://core.trac.wordpress.org/attachment/ticket/32565/32565.4.diff
 32565.4.diff], I applied the fix inside `add_meta()` to make things
 simpler. I also did some refactoring in `wp_ajax_add_meta()` to make
 things more organized.

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


More information about the wp-trac mailing list