33/**
44 * Module update checker extended from vendor PUC
55 *
6- * @see Puc_v4p8_Plugin_UpdateChecker
6+ * @see Puc_v4p10_Plugin_UpdateChecker
77 */
88
99namespace OSDXP_Dashboard ;
1010
11- class OsdxpModuleUpdateChecker extends \Puc_v4p8_UpdateChecker
11+ class OsdxpModuleUpdateChecker extends \Puc_v4p10_UpdateChecker
1212{
1313 protected $ updateTransient = 'update_plugins ' ;
1414 protected $ translationType = 'plugin ' ;
@@ -18,7 +18,7 @@ class OsdxpModuleUpdateChecker extends \Puc_v4p8_UpdateChecker
1818 public $ muPluginFile = '' ; //For MU modules, the module filename relative to the mu-plugins directory.
1919
2020 /**
21- * @var Puc_v4p8_Plugin_Package
21+ * @var Puc_v4p10_Plugin_Package
2222 */
2323 protected $ package ;
2424
@@ -84,11 +84,11 @@ public function __construct(
8484 * Create an instance of the scheduler.
8585 *
8686 * @param int $checkPeriod
87- * @return Puc_v4p8_Scheduler
87+ * @return Puc_v4p10_Scheduler
8888 */
8989 protected function createScheduler ($ checkPeriod )
9090 {
91- $ scheduler = new \Puc_v4p8_Scheduler ($ this , $ checkPeriod , array ('load-plugins.php ' ));
91+ $ scheduler = new \Puc_v4p10_Scheduler ($ this , $ checkPeriod , array ('load-plugins.php ' ));
9292 register_deactivation_hook ($ this ->pluginFile , array ($ scheduler , 'removeUpdaterCron ' ));
9393 return $ scheduler ;
9494 }
@@ -136,14 +136,14 @@ public function removeHooks()
136136 * @uses wp_remote_get()
137137 *
138138 * @param array $queryArgs Additional query arguments to append to the request. Optional.
139- * @return Puc_v4p8_Plugin_Info
139+ * @return Puc_v4p10_Plugin_Info
140140 */
141141 public function requestInfo ($ queryArgs = array ())
142142 {
143- list ($ pluginInfo , $ result ) = $ this ->requestMetadata ('Puc_v4p8_Plugin_Info ' , 'request_info ' , $ queryArgs );
143+ list ($ pluginInfo , $ result ) = $ this ->requestMetadata ('Puc_v4p10_Plugin_Info ' , 'request_info ' , $ queryArgs );
144144
145145 if ($ pluginInfo !== null ) {
146- /** @var Puc_v4p8_Plugin_Info $pluginInfo */
146+ /** @var Puc_v4p10_Plugin_Info $pluginInfo */
147147 $ pluginInfo ->filename = $ this ->pluginFile ;
148148 $ pluginInfo ->slug = $ this ->slug ;
149149 }
@@ -157,7 +157,7 @@ public function requestInfo($queryArgs = array())
157157 *
158158 * @uses PluginUpdateChecker::requestInfo()
159159 *
160- * @return Puc_v4p8_Update |null An instance of Plugin_Update, or NULL when no updates are available.
160+ * @return Puc_v4p10_Update |null An instance of Plugin_Update, or NULL when no updates are available.
161161 */
162162 public function requestUpdate ()
163163 {
@@ -167,7 +167,7 @@ public function requestUpdate()
167167 if ($ pluginInfo === null ) {
168168 return null ;
169169 }
170- $ update = \Puc_v4p8_Plugin_Update ::fromPluginInfo ($ pluginInfo );
170+ $ update = \Puc_v4p10_Plugin_Update ::fromPluginInfo ($ pluginInfo );
171171
172172 $ update = $ this ->filterUpdateResult ($ update );
173173
@@ -284,13 +284,13 @@ public function isBeingUpgraded($upgrader = null)
284284 * Uses cached update data. To retrieve update information straight from
285285 * the metadata URL, call requestUpdate() instead.
286286 *
287- * @return Puc_v4p8_Plugin_Update |null
287+ * @return Puc_v4p10_Plugin_Update |null
288288 */
289289 public function getUpdate ()
290290 {
291291 $ update = parent ::getUpdate ();
292292 if (isset ($ update )) {
293- /** @var Puc_v4p8_Plugin_Update $update */
293+ /** @var Puc_v4p10_Plugin_Update $update */
294294 $ update ->filename = $ this ->pluginFile ;
295295 }
296296 return $ update ;
@@ -404,21 +404,21 @@ public function addResultFilter($callback)
404404
405405 protected function createDebugBarExtension ()
406406 {
407- return new \Puc_v4p8_DebugBar_PluginExtension ($ this );
407+ return new \Puc_v4p10_DebugBar_PluginExtension ($ this );
408408 }
409409
410410 /**
411411 * Create a package instance that represents this plugin or theme.
412412 *
413- * @return Puc_v4p8_InstalledPackage
413+ * @return Puc_v4p10_InstalledPackage
414414 */
415415 protected function createInstalledPackage ()
416416 {
417- return new \Puc_v4p8_Plugin_Package ($ this ->pluginAbsolutePath , $ this );
417+ return new \Puc_v4p10_Plugin_Package ($ this ->pluginAbsolutePath , $ this );
418418 }
419419
420420 /**
421- * @return Puc_v4p8_Plugin_Package
421+ * @return Puc_v4p10_Plugin_Package
422422 */
423423 public function getInstalledPackage ()
424424 {
@@ -436,7 +436,7 @@ public function getInstalledPackage()
436436 * @param string $metaClass Parse the JSON as an instance of this class. It must have a static fromJson method.
437437 * @param string $filterRoot
438438 * @param array $queryArgs Additional query arguments.
439- * @return array [Puc_v4p8_Metadata |null, array|WP_Error]
439+ * @return array [Puc_v4p10_Metadata |null, array|WP_Error]
440440 * A metadata instance and the value returned by wp_remote_get().
441441 */
442442 protected function requestMetadata ($ metaClass , $ filterRoot , $ queryArgs = array ())
0 commit comments