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:
Travis 2022-02-14 10:42:50 -08:00 committed by GitHub
parent e41441f83e
commit ae582fdc66
3 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -84,7 +84,7 @@ class MarketingJetpack {
}
// 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;
}
@ -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_type( Note::E_WC_ADMIN_NOTE_MARKETING );
$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_source( 'woocommerce-admin-notes' );
$note->add_action(