- Timestamp:
- 09/03/2019 12:39:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php
r45811 r45932 58 58 */ 59 59 public function get_items_permissions_check( $request ) { 60 /* translators: %s: method name*/60 /* translators: %s: Method name. */ 61 61 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 62 62 } … … 71 71 */ 72 72 public function get_items( $request ) { 73 /* translators: %s: method name*/73 /* translators: %s: Method name. */ 74 74 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 75 75 } … … 84 84 */ 85 85 public function get_item_permissions_check( $request ) { 86 /* translators: %s: method name*/86 /* translators: %s: Method name. */ 87 87 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 88 88 } … … 97 97 */ 98 98 public function get_item( $request ) { 99 /* translators: %s: method name*/99 /* translators: %s: Method name. */ 100 100 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 101 101 } … … 110 110 */ 111 111 public function create_item_permissions_check( $request ) { 112 /* translators: %s: method name*/112 /* translators: %s: Method name. */ 113 113 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 114 114 } … … 123 123 */ 124 124 public function create_item( $request ) { 125 /* translators: %s: method name*/125 /* translators: %s: Method name. */ 126 126 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 127 127 } … … 136 136 */ 137 137 public function update_item_permissions_check( $request ) { 138 /* translators: %s: method name*/138 /* translators: %s: Method name. */ 139 139 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 140 140 } … … 149 149 */ 150 150 public function update_item( $request ) { 151 /* translators: %s: method name*/151 /* translators: %s: Method name. */ 152 152 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 153 153 } … … 162 162 */ 163 163 public function delete_item_permissions_check( $request ) { 164 /* translators: %s: method name*/164 /* translators: %s: Method name. */ 165 165 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 166 166 } … … 175 175 */ 176 176 public function delete_item( $request ) { 177 /* translators: %s: method name*/177 /* translators: %s: Method name. */ 178 178 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 179 179 } … … 188 188 */ 189 189 protected function prepare_item_for_database( $request ) { 190 /* translators: %s: method name*/190 /* translators: %s: Method name. */ 191 191 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 192 192 } … … 202 202 */ 203 203 public function prepare_item_for_response( $item, $request ) { 204 /* translators: %s: method name*/204 /* translators: %s: Method name. */ 205 205 return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); 206 206 }
Note: See TracChangeset
for help on using the changeset viewer.