Changeset 11096
- Timestamp:
- 07/06/2021 08:33:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/block-json/class-validator.php
r10916 r11096 234 234 $this->append_error_data( 'block.json:script', 'error' ); 235 235 $this->append_error_data( 'block.json:editorScript', 'error' ); 236 }237 238 if ( ! isset( $block_json->style ) && ! isset( $block_json->editorStyle ) ) {239 $this->messages->add(240 'error',241 sprintf(242 __( 'At least one of the following properties must be present: %s', 'wporg-plugins' ),243 // translators: used between list items, there is a space after the comma.244 '<code>style</code>' . __( ', ', 'wporg-plugins' ) . '<code>editorStyle</code>'245 )246 );247 $this->append_error_data( 'block.json:style', 'error' );248 $this->append_error_data( 'block.json:editorStyle', 'error' );249 236 } 250 237 }
Note: See TracChangeset
for help on using the changeset viewer.