Merge pull request #23210 from woocommerce/update/fb-recommendation-end-date

[3.6] OBW: Display FB recommendation until removed
This commit is contained in:
Timmy Crawford 2019-04-08 10:32:32 -07:00 committed by GitHub
commit 06bec2e845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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' );
}
/**