eChecker->checkForUpdates(); } } /** * Calculate the actual check period based on the current status and environment. * * @return int Check period in seconds. */ protected function getEffectiveCheckPeriod() { $currentFilter = current_filter(); if ( in_array($currentFilter, array('load-update-core.php', 'upgrader_process_complete')) ) { //Check more often when the user visits "Dashboard -> Updates" or does a bulk update. $period = 60; } else if ( in_array($currentFilter, $this->hourlyCheckHooks) ) { //Also check more often on /wp-admin/update.php and the "Plugins" or "Themes" page. $period = 3600; } else if ( $this->throttleRedundantChecks && ($this->updateChecker->getUpdate() !== null) ) { //Check less frequently if it's already known that an update is available. $period = $this->throttledCheckPeriod * 3600; } else if ( defined('DOING_CRON') && constant('DOING_CRON') ) { //WordPress cron schedules are not exact, so lets do an update check even //if slightly less than $checkPeriod hours have elapsed since the last check. $cronFuzziness = 20 * 60; $period = $this->checkPeriod * 3600 - $cronFuzziness; } else { $period = $this->checkPeriod * 3600; } return $period; } /** * Add our custom schedule to the array of Cron schedules used by WP. * * @param array $schedules * @return array */ public function _addCustomSchedule($schedules){ if ( $this->checkPeriod && ($this->checkPeriod > 0) ){ $scheduleName = 'every' . $this->checkPeriod . 'hours'; $schedules[$scheduleName] = array( 'interval' => $this->checkPeriod * 3600, 'display' => sprintf('Every %d hours', $this->checkPeriod), ); } return $schedules; } /** * Remove the scheduled cron event that the library uses to check for updates. * * @return void */ public function removeUpdaterCron(){ wp_clear_scheduled_hook($this->cronHook); } /** * Get the name of the update checker's WP-cron hook. Mostly useful for debugging. * * @return string */ public function getCronHookName() { return $this->cronHook; } } endif;
Fatal error: Uncaught Error: Class "Puc_v4p4_Scheduler" not found in /htdocs/le-blog.fr/wp-content/plugins/le-blog/lib/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:81 Stack trace: #0 /htdocs/le-blog.fr/wp-content/plugins/le-blog/lib/plugin-update-checker/Puc/v4p4/UpdateChecker.php(81): Puc_v4p4_Plugin_UpdateChecker->createScheduler(12) #1 /htdocs/le-blog.fr/wp-content/plugins/le-blog/lib/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php(69): Puc_v4p4_UpdateChecker->__construct('https://github....', 'le-blog', 'isubmission', 12, '') #2 /htdocs/le-blog.fr/wp-content/plugins/le-blog/lib/plugin-update-checker/Puc/v4p4/Vcs/PluginUpdateChecker.php(29): Puc_v4p4_Plugin_UpdateChecker->__construct('https://github....', '/htdocs/le-blog...', 'isubmission', 12, '', '') #3 /htdocs/le-blog.fr/wp-content/plugins/le-blog/lib/plugin-update-checker/Puc/v4p4/Factory.php(99): Puc_v4p4_Vcs_PluginUpdateChecker->__construct(Object(Puc_v4p4_Vcs_GitHubApi), '/htdocs/le-blog...', 'isubmission', 12, '', '') #4 /htdocs/le-blog.fr/wp-content/plugins/le-blog/isubmission.php(58): Puc_v4p4_Factory::buildUpdateChecker('https://github....', '/htdocs/le-blog...', 'isubmission') #5 /htdocs/le-blog.fr/wp-content/plugins/le-blog/isubmission.php(21): Isubmission->run_update_checker() #6 /htdocs/le-blog.fr/wp-content/plugins/le-blog/isubmission.php(66): Isubmission->__construct() #7 /htdocs/le-blog.fr/wp-settings.php(560): include_once('/htdocs/le-blog...') #8 /htdocs/le-blog.fr/wp-config.php(102): require_once('/htdocs/le-blog...') #9 /htdocs/le-blog.fr/wp-load.php(50): require_once('/htdocs/le-blog...') #10 /htdocs/le-blog.fr/wp-blog-header.php(13): require_once('/htdocs/le-blog...') #11 /htdocs/le-blog.fr/index.php(17): require('/htdocs/le-blog...') #12 {main} thrown in /htdocs/le-blog.fr/wp-content/plugins/le-blog/lib/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php on line 81