Removed deprecated method call.
This commit is contained in:
parent
3c83db4c4a
commit
bb2cf2e8dc
|
@ -156,7 +156,6 @@ class WC_Notes_Run_Db_Update {
|
||||||
. sprintf( ' ' . esc_html__( 'The database update process runs in the background and may take a little while, so please be patient. Advanced users can alternatively update via %1$sWP CLI%2$s.', 'woocommerce' ), '<a href="https://github.com/woocommerce/woocommerce/wiki/Upgrading-the-database-using-WP-CLI">', '</a>' )
|
. sprintf( ' ' . esc_html__( 'The database update process runs in the background and may take a little while, so please be patient. Advanced users can alternatively update via %1$sWP CLI%2$s.', 'woocommerce' ), '<a href="https://github.com/woocommerce/woocommerce/wiki/Upgrading-the-database-using-WP-CLI">', '</a>' )
|
||||||
);
|
);
|
||||||
$note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_UPDATE );
|
$note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_UPDATE );
|
||||||
$note->set_icon( 'info' );
|
|
||||||
$note->set_name( self::NOTE_NAME );
|
$note->set_name( self::NOTE_NAME );
|
||||||
$note->set_content_data( (object) array() );
|
$note->set_content_data( (object) array() );
|
||||||
$note->set_source( 'woocommerce-core' );
|
$note->set_source( 'woocommerce-core' );
|
||||||
|
|
|
@ -91,7 +91,6 @@ class WC_Tests_Notes_Run_Db_Update extends WC_Unit_Test_Case {
|
||||||
$note->set_title( 'WooCommerce database update required' );
|
$note->set_title( 'WooCommerce database update required' );
|
||||||
$note->set_content( 'To keep things running smoothly, we have to update your database to the newest version.' );
|
$note->set_content( 'To keep things running smoothly, we have to update your database to the newest version.' );
|
||||||
$note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_UPDATE );
|
$note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_UPDATE );
|
||||||
$note->set_icon( 'info' );
|
|
||||||
$note->set_name( WC_Notes_Run_Db_Update::NOTE_NAME );
|
$note->set_name( WC_Notes_Run_Db_Update::NOTE_NAME );
|
||||||
$note->set_content_data( (object) array() );
|
$note->set_content_data( (object) array() );
|
||||||
$note->set_source( 'woocommerce-core' );
|
$note->set_source( 'woocommerce-core' );
|
||||||
|
|
Loading…
Reference in New Issue