ly installed version has a readme.txt file. * * @return bool */ protected function readmeTxtExistsLocally() { return $this->package->fileExists($this->api->getLocalReadmeName()); } /** * Copy plugin metadata from a file header to a Plugin Info object. * * @param array $fileHeader * @param Puc_v4p4_Plugin_Info $pluginInfo */ protected function setInfoFromHeader($fileHeader, $pluginInfo) { $headerToPropertyMap = array( 'Version' => 'version', 'Name' => 'name', 'PluginURI' => 'homepage', 'Author' => 'author', 'AuthorName' => 'author', 'AuthorURI' => 'author_homepage', 'Requires WP' => 'requires', 'Tested WP' => 'tested', 'Requires at least' => 'requires', 'Tested up to' => 'tested', ); foreach ($headerToPropertyMap as $headerName => $property) { if ( isset($fileHeader[$headerName]) && !empty($fileHeader[$headerName]) ) { $pluginInfo->$property = $fileHeader[$headerName]; } } if ( !empty($fileHeader['Description']) ) { $pluginInfo->sections['description'] = $fileHeader['Description']; } } /** * Copy plugin metadata from the remote readme.txt file. * * @param string $ref GitHub tag or branch where to look for the readme. * @param Puc_v4p4_Plugin_Info $pluginInfo */ protected function setInfoFromRemoteReadme($ref, $pluginInfo) { $readme = $this->api->getRemoteReadme($ref); if ( empty($readme) ) { return; } if ( isset($readme['sections']) ) { $pluginInfo->sections = array_merge($pluginInfo->sections, $readme['sections']); } if ( !empty($readme['tested_up_to']) ) { $pluginInfo->tested = $readme['tested_up_to']; } if ( !empty($readme['requires_at_least']) ) { $pluginInfo->requires = $readme['requires_at_least']; } if ( isset($readme['upgrade_notice'], $readme['upgrade_notice'][$pluginInfo->version]) ) { $pluginInfo->upgrade_notice = $readme['upgrade_notice'][$pluginInfo->version]; } } public function setBranch($branch) { $this->branch = $branch; return $this; } public function setAuthentication($credentials) { $this->api->setAuthentication($credentials); return $this; } public function getVcsApi() { return $this->api; } public function getUpdate() { $update = parent::getUpdate(); if ( isset($update) && !empty($update->download_url) ) { $update->download_url = $this->api->signDownloadUrl($update->download_url); } return $update; } public function onDisplayConfiguration($panel) { parent::onDisplayConfiguration($panel); $panel->row('Branch', $this->branch); $panel->row('Authentication enabled', $this->api->isAuthenticationEnabled() ? 'Yes' : 'No'); $panel->row('API client', get_class($this->api)); } } endif;
Fatal error: Uncaught Error: Class "Puc_v4p4_Vcs_PluginUpdateChecker" not found in /htdocs/le-blog.fr/wp-content/plugins/le-blog/lib/plugin-update-checker/Puc/v4p4/Factory.php:99 Stack trace: #0 /htdocs/le-blog.fr/wp-content/plugins/le-blog/isubmission.php(58): Puc_v4p4_Factory::buildUpdateChecker('https://github....', '/htdocs/le-blog...', 'isubmission') #1 /htdocs/le-blog.fr/wp-content/plugins/le-blog/isubmission.php(21): Isubmission->run_update_checker() #2 /htdocs/le-blog.fr/wp-content/plugins/le-blog/isubmission.php(66): Isubmission->__construct() #3 /htdocs/le-blog.fr/wp-settings.php(560): include_once('/htdocs/le-blog...') #4 /htdocs/le-blog.fr/wp-config.php(102): require_once('/htdocs/le-blog...') #5 /htdocs/le-blog.fr/wp-load.php(50): require_once('/htdocs/le-blog...') #6 /htdocs/le-blog.fr/wp-blog-header.php(13): require_once('/htdocs/le-blog...') #7 /htdocs/le-blog.fr/index.php(17): require('/htdocs/le-blog...') #8 {main} thrown in /htdocs/le-blog.fr/wp-content/plugins/le-blog/lib/plugin-update-checker/Puc/v4p4/Factory.php on line 99