WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43559, comment 3


Ignore:
Timestamp:
04/15/2018 08:30:26 PM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43559, comment 3

    initial v1  
    2222So you have no way to add a custom field with a blank value.
    2323
    24 I have a JS listener that does a standard WP REST call to fetch the post with full meta.     I use this to remotely configure plugins, so if a setting for a text field, call it "Search Box Title" should be set to BLANK I cannot do this.     I am now sending   and in the listener I then have to do if $json_data[ 'search_box_title' ] === ' '  $json_data['search_box_title']='';
     24I have a JS listener that does a standard WP REST call to fetch the post with full meta.     I use this to remotely configure plugins, so if a setting for a text field, call it "Search Box Title" should be set to BLANK I cannot do this.     I am now sending   and in the listener I then have to do `if $json_data[ 'search_box_title' ] === ' '  $json_data['search_box_title']='';`
    2525
    2626Not I cannot set my "custom_html' setting to