Allow content data note props to be passed from remote sources (https://github.com/woocommerce/woocommerce-admin/pull/8047)

* Allow content data note props to be passed from remote sources

* Add changelog entry
This commit is contained in:
Joshua T Flowers 2021-12-21 10:52:15 -05:00 committed by GitHub
parent 00055f69e4
commit 0ef8959a22
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: Update
Allow content data note props to be passed from remote sources #8047

View File

@ -59,7 +59,7 @@ class SpecRunner {
// Set up the note.
$note->set_title( $locale->title );
$note->set_content( $locale->content );
$note->set_content_data( (object) array() );
$note->set_content_data( isset( $spec->content_data ) ? $spec->content_data : (object) array() );
$note->set_status( $status );
$note->set_type( $spec->type );
$note->set_name( $spec->slug );