OBW: Display FB recommendation until removed

Instead of ending the FB recommendation on
a specific date we'll remove it when needed.
This commit is contained in:
Valerie 2019-04-04 13:33:32 -04:00
parent 274a471167
commit 0d1c1ec7b6
1 changed files with 1 additions and 5 deletions

View File

@ -141,11 +141,7 @@ class WC_Admin_Setup_Wizard {
* @return boolean
*/
protected function should_show_facebook() {
$end_date_facebook_recommendation = new DateTime( '8 October 2019' );
$current_user_date = new DateTime( current_time( 'Y-m-d' ) );
return current_user_can( 'install_plugins' ) &&
$end_date_facebook_recommendation >= $current_user_date;
return current_user_can( 'install_plugins' );
}
/**