Jetpack Backup note - change time range and add an image (https://github.com/woocommerce/woocommerce-admin/pull/8293)
* start note after 3 days and add an image * add changelog entry * add PR number to changelog
This commit is contained in:
parent
e41441f83e
commit
ae582fdc66
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: Update
|
||||||
|
|
||||||
|
Adjust time range and add an image for the Jetpack Backup note. #8293
|
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
|
@ -84,7 +84,7 @@ class MarketingJetpack {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check requirements.
|
// Check requirements.
|
||||||
if ( ! self::is_wc_admin_active_in_date_range( 'week-1-4' ) || ! self::can_be_added() || self::has_backups() ) {
|
if ( ! self::is_wc_admin_active_in_date_range( 'week-1-4', DAY_IN_SECONDS * 3 ) || ! self::can_be_added() || self::has_backups() ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,6 +102,13 @@ class MarketingJetpack {
|
||||||
$note->set_content( __( 'Store downtime means lost sales. One-click restores get you back online quickly if something goes wrong.', 'woocommerce-admin' ) );
|
$note->set_content( __( 'Store downtime means lost sales. One-click restores get you back online quickly if something goes wrong.', 'woocommerce-admin' ) );
|
||||||
$note->set_type( Note::E_WC_ADMIN_NOTE_MARKETING );
|
$note->set_type( Note::E_WC_ADMIN_NOTE_MARKETING );
|
||||||
$note->set_name( self::NOTE_NAME );
|
$note->set_name( self::NOTE_NAME );
|
||||||
|
$note->set_layout( 'thumbnail' );
|
||||||
|
$note->set_image(
|
||||||
|
plugins_url(
|
||||||
|
'/images/admin_notes/marketing-jetpack-2x.png',
|
||||||
|
WC_ADMIN_PLUGIN_FILE
|
||||||
|
)
|
||||||
|
);
|
||||||
$note->set_content_data( (object) array() );
|
$note->set_content_data( (object) array() );
|
||||||
$note->set_source( 'woocommerce-admin-notes' );
|
$note->set_source( 'woocommerce-admin-notes' );
|
||||||
$note->add_action(
|
$note->add_action(
|
||||||
|
|
Loading…
Reference in New Issue