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:
parent
00055f69e4
commit
0ef8959a22
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: Update
|
||||
|
||||
Allow content data note props to be passed from remote sources #8047
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue