Changeset 6764 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/inc/rest-api.php
- Timestamp:
- 02/26/2018 06:38:19 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/inc/rest-api.php
r6268 r6764 72 72 if ( get_option( 'show_avatars' ) ) { 73 73 $avatar_properties = array(); 74 $avatar_sizes = rest_get_avatar_sizes();74 $avatar_sizes = rest_get_avatar_sizes(); 75 75 76 76 foreach ( $avatar_sizes as $size ) { … … 127 127 * @return void 128 128 */ 129 function register_fav_sessions_email() {129 function register_fav_sessions_email() { 130 130 register_rest_route( 131 131 'wc-post-types/v1', // REST namespace + API version … … 136 136 'args' => array( 137 137 'email-address' => array( 138 'required' => true,138 'required' => true, 139 139 'validate_callback' => function( $value, $request, $param ) { 140 140 return is_email( $value ); … … 146 146 147 147 'session-list' => array( 148 'required' => true,148 'required' => true, 149 149 'validate_callback' => function( $value, $request, $param ) { 150 150 $session_ids = explode( ',', $value ); … … 162 162 }, 163 163 ), 164 ) 164 ), 165 165 ) 166 166 );
Note: See TracChangeset
for help on using the changeset viewer.