Skip to content

Commit 50752ba

Browse files
authored
Merge pull request #69 from osDXP/1.1.3
1.1.3
2 parents 6065331 + 001cc8f commit 50752ba

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

includes/dependencies/plugin-update-checker/class-osdxp-module-update-checker-ui.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Module Update Checker UI
55
* This adds extra links to module table view to check for updates & extra
66
*
7-
* @see Puc_v4p8_Plugin_Ui
7+
* @see Puc_v4p10_Plugin_Ui
88
*/
99

1010
namespace OSDXP_Dashboard;

includes/dependencies/plugin-update-checker/class-osdxp-module-update-checker.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
/**
44
* Module update checker extended from vendor PUC
55
*
6-
* @see Puc_v4p8_Plugin_UpdateChecker
6+
* @see Puc_v4p10_Plugin_UpdateChecker
77
*/
88

99
namespace 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())

osdxp-dashboard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Author URI: https://osdxp.org
99
* Requires at least: 5.2
1010
* Requires PHP: 7.2
11-
* Version: 1.1.2
11+
* Version: 1.1.3
1212
* License: GPL2
1313
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1414
* Text domain: osdxp-dashboard
@@ -42,7 +42,7 @@
4242
define('OSDXP_DASHBOARD_URL', plugins_url('/', OSDXP_DASHBOARD_FILE));
4343

4444
// Always mention the plugin version (enclose in quotes so it is processed as a string).
45-
define('OSDXP_DASHBOARD_VER', '1.1.2');
45+
define('OSDXP_DASHBOARD_VER', '1.1.3');
4646
define('OSDXP_DASHBOARD_SITE', 'https://osdxp.org/');
4747

4848
define('OSDXP_DASHBOARD_PLUGIN_NAME', 'Open Source DXP Dashboard');

0 commit comments

Comments
 (0)