Changeset 54155 for trunk/src/wp-includes/class-wp-block.php
- Timestamp:
- 09/14/2022 10:50:26 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block.php
r54133 r54155 261 261 } 262 262 263 if ( ! empty( $this->block_type->script ) ) { 264 wp_enqueue_script( $this->block_type->script ); 265 } 266 267 if ( ! empty( $this->block_type->view_script ) && empty( $this->block_type->render_callback ) ) { 268 wp_enqueue_script( $this->block_type->view_script ); 269 } 270 271 if ( ! empty( $this->block_type->style ) ) { 272 wp_enqueue_style( $this->block_type->style ); 263 if ( ( ! empty( $this->block_type->script_handles ) ) ) { 264 foreach ( $this->block_type->script_handles as $script_handle ) { 265 wp_enqueue_script( $script_handle ); 266 } 267 } 268 269 if ( ! empty( $this->block_type->view_script_handles ) && empty( $this->block_type->render_callback ) ) { 270 foreach ( $this->block_type->view_script_handles as $view_script_handle ) { 271 wp_enqueue_script( $view_script_handle ); 272 } 273 } 274 275 if ( ( ! empty( $this->block_type->style_handles ) ) ) { 276 foreach ( $this->block_type->style_handles as $style_handle ) { 277 wp_enqueue_style( $style_handle ); 278 } 273 279 } 274 280
Note: See TracChangeset
for help on using the changeset viewer.