/** * Searches for the upload folder on the Google Drive. * If there is no such folder it will be created * @since 1.0 */ public function search_folder() { if (!isset($_REQUEST['action'])) { return; } if ('search_folder' != $_REQUEST['action']) { return; } $helper = new WPB_Google_Drive_Cdn_Service_Helper($this); // search for the folder. if the folder does not exist, create it $helper->search_folder(); if ($helper->is_api_working()) { // empty error log update_option('wpbgdc_error_log', array()); } wp_redirect(admin_url('options-general.php?page=wpbgdc')); }
/** * Searches for the upload folder on the Google Drive. * If there is no such folder it will be created * @since 1.0 */ public function search_folder() { if (!isset($_REQUEST['action'])) { return; } if ('search_folder' != $_REQUEST['action']) { return; } $helper = new WPB_Google_Drive_Cdn_Service_Helper($this); // search for the folder. if the folder does not exist, create it $helper->search_folder(); wp_redirect(admin_url('options-general.php?page=wpbgdc')); }