Changeset 715357
- Timestamp:
- 05/19/2013 09:25:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jetpack/trunk/class.json-api-endpoints.php
r713159 r715357 1154 1154 return false; 1155 1155 1156 // whitelist of post typesthat can be accessed1156 // whitelist of that can be accessed 1157 1157 if ( in_array( $key, apply_filters( 'rest_api_allowed_public_metadata', array() ) ) ) 1158 1158 return true; … … 2010 2010 if ( ! empty( $metadata ) ) { 2011 2011 foreach ( (array) $metadata as $meta ) { 2012 2013 2012 2014 2013 2015 $existing_meta_item = new stdClass; … … 3112 3114 'search' => '(string) Search query', 3113 3115 'meta_key' => '(string) Metadata key that the post should contain', 3114 'meta_value' => '( int|string) Metadata value that the post should contain. Will only be applied if a `meta_key` is also given',3116 'meta_value' => '(string) Metadata value that the post should contain. Will only be applied if a `meta_key` is also given', 3115 3117 ), 3116 3118
Note: See TracChangeset
for help on using the changeset viewer.