Skip to content

Commit

Permalink
Merge branch 'release/1.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
JiveDig committed Sep 21, 2023
2 parents 5bc0262 + afd55eb commit 5e69a3f
Show file tree
Hide file tree
Showing 50 changed files with 145 additions and 119 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.2.2 (9/21/23)
* Changed: Rename to Mai Pro Plugin to lessen confusion on where to install.
* Changed: Update the updated.

## 1.2.1 (6/20/23)
* Fixed: Updater object not set.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Mai Theme Pro
# Mai Pro Plugin
Unlimited access to all Mai Plugins, Mai Patterns, and more. Requires Mai Theme v2.
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions mai-design-pack.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* Plugin Name: Mai Theme Pro Plugin (formerly Mai Design Pack)
* Plugin Name: Mai Pro Plugin (formerly Mai Design Pack)
* Plugin URI: https://bizbudding.com/mai-theme-pro/
* Description: Unlimited access to all Mai Plugins, and more. Requires Mai Theme v2.
* Version: 1.2.1
* Version: 1.2.2
*
* Author: BizBudding
* Author URI: https://bizbudding.com
Expand Down Expand Up @@ -91,7 +91,7 @@ public function __wakeup() {
private function setup_constants() {
// Plugin version.
if ( ! defined( 'MAI_DESIGN_PACK_VERSION' ) ) {
define( 'MAI_DESIGN_PACK_VERSION', '1.2.1' );
define( 'MAI_DESIGN_PACK_VERSION', '1.2.2' );
}

// Plugin Folder Path.
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/autoload_files.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
$baseDir = dirname($vendorDir);

return array(
'9b77ddcfb14408a32f5aaf74e0a11694' => $vendorDir . '/yahnis-elsts/plugin-update-checker/load-v5p1.php',
'efd9d646f43178e7ba3f07758c02ce1d' => $vendorDir . '/yahnis-elsts/plugin-update-checker/load-v5p2.php',
);
2 changes: 1 addition & 1 deletion vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class ComposerStaticInit2b339d4c5dd91b258f717fd7dd2e2aa2
{
public static $files = array (
'9b77ddcfb14408a32f5aaf74e0a11694' => __DIR__ . '/..' . '/yahnis-elsts/plugin-update-checker/load-v5p1.php',
'efd9d646f43178e7ba3f07758c02ce1d' => __DIR__ . '/..' . '/yahnis-elsts/plugin-update-checker/load-v5p2.php',
);

public static $classMap = array (
Expand Down
16 changes: 8 additions & 8 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
"packages": [
{
"name": "yahnis-elsts/plugin-update-checker",
"version": "v5.1",
"version_normalized": "5.1.0.0",
"version": "v5.2",
"version_normalized": "5.2.0.0",
"source": {
"type": "git",
"url": "https://github.com/YahnisElsts/plugin-update-checker.git",
"reference": "48b03e93c9c2587f9276dce00ce2b6d94c1190d2"
"reference": "5a270988c5f76bfdfbbb42cccc7c9627f7dd64d0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/YahnisElsts/plugin-update-checker/zipball/48b03e93c9c2587f9276dce00ce2b6d94c1190d2",
"reference": "48b03e93c9c2587f9276dce00ce2b6d94c1190d2",
"url": "https://api.github.com/repos/YahnisElsts/plugin-update-checker/zipball/5a270988c5f76bfdfbbb42cccc7c9627f7dd64d0",
"reference": "5a270988c5f76bfdfbbb42cccc7c9627f7dd64d0",
"shasum": ""
},
"require": {
"ext-json": "*",
"php": ">=5.6.20"
},
"time": "2023-05-20T11:55:43+00:00",
"time": "2023-08-17T12:44:32+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
"files": [
"load-v5p1.php"
"load-v5p2.php"
]
},
"notification-url": "https://packagist.org/downloads/",
Expand All @@ -49,7 +49,7 @@
],
"support": {
"issues": "https://github.com/YahnisElsts/plugin-update-checker/issues",
"source": "https://github.com/YahnisElsts/plugin-update-checker/tree/v5.1"
"source": "https://github.com/YahnisElsts/plugin-update-checker/tree/v5.2"
},
"install-path": "../yahnis-elsts/plugin-update-checker"
}
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
'reference' => '347cb60dffae9ad1a64ac2375cde211b04daf577',
'reference' => '834c6a12900dd12c3728566c0ad6f00465eeac6b',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,16 +13,16 @@
'__root__' => array(
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
'reference' => '347cb60dffae9ad1a64ac2375cde211b04daf577',
'reference' => '834c6a12900dd12c3728566c0ad6f00465eeac6b',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'dev_requirement' => false,
),
'yahnis-elsts/plugin-update-checker' => array(
'pretty_version' => 'v5.1',
'version' => '5.1.0.0',
'reference' => '48b03e93c9c2587f9276dce00ce2b6d94c1190d2',
'pretty_version' => 'v5.2',
'version' => '5.2.0.0',
'reference' => '5a270988c5f76bfdfbbb42cccc7c9627f7dd64d0',
'type' => 'library',
'install_path' => __DIR__ . '/../yahnis-elsts/plugin-update-checker',
'aliases' => array(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

if ( !class_exists(PucFactory::class, false) ):

class PucFactory extends \YahnisElsts\PluginUpdateChecker\v5p1\PucFactory {
class PucFactory extends \YahnisElsts\PluginUpdateChecker\v5p2\PucFactory {
}

endif;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p1;
namespace YahnisElsts\PluginUpdateChecker\v5p2;

if ( !class_exists(Autoloader::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p2\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p1\PucFactory;
use YahnisElsts\PluginUpdateChecker\v5p1\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p2\PucFactory;
use YahnisElsts\PluginUpdateChecker\v5p2\UpdateChecker;

if ( !class_exists(Extension::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p2\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p1\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p2\UpdateChecker;

if ( !class_exists(Panel::class, false) && class_exists('Debug_Bar_Panel', false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p2\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p1\Plugin\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p2\Plugin\UpdateChecker;

if ( !class_exists(PluginExtension::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p2\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p1\Plugin\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p2\Plugin\UpdateChecker;

if ( !class_exists(PluginPanel::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;
namespace YahnisElsts\PluginUpdateChecker\v5p2\DebugBar;

use YahnisElsts\PluginUpdateChecker\v5p1\Theme\UpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p2\Theme\UpdateChecker;

if ( !class_exists(ThemePanel::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1;
namespace YahnisElsts\PluginUpdateChecker\v5p2;

if ( !class_exists(InstalledPackage::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1;
namespace YahnisElsts\PluginUpdateChecker\v5p2;

use LogicException;
use stdClass;
Expand All @@ -15,6 +15,12 @@
* @access public
*/
abstract class Metadata {
/**
* Additional dynamic properties, usually copied from the API response.
*
* @var array<string,mixed>
*/
protected $extraProperties = array();

/**
* Create an instance of this class from a JSON document.
Expand Down Expand Up @@ -135,6 +141,22 @@ protected function getFieldNames() {
protected function getPrefixedFilter($tag) {
return 'puc_' . $tag;
}

public function __set($name, $value) {
$this->extraProperties[$name] = $value;
}

public function __get($name) {
return isset($this->extraProperties[$name]) ? $this->extraProperties[$name] : null;
}

public function __isset($name) {
return isset($this->extraProperties[$name]);
}

public function __unset($name) {
unset($this->extraProperties[$name]);
}
}

endif;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1;
namespace YahnisElsts\PluginUpdateChecker\v5p2;

if ( !class_exists(OAuthSignature::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p2\Plugin;

use YahnisElsts\PluginUpdateChecker\v5p1\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p1\PucFactory;
use YahnisElsts\PluginUpdateChecker\v5p2\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p2\PucFactory;

if ( !class_exists(Package::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p2\Plugin;

use YahnisElsts\PluginUpdateChecker\v5p1\Metadata;
use YahnisElsts\PluginUpdateChecker\v5p2\Metadata;

if ( !class_exists(PluginInfo::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p2\Plugin;

if ( !class_exists('Ui', false) ):
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p2\Plugin;

use YahnisElsts\PluginUpdateChecker\v5p1\Update as BaseUpdate;
use YahnisElsts\PluginUpdateChecker\v5p2\Update as BaseUpdate;

if ( !class_exists(Update::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1\Plugin;
namespace YahnisElsts\PluginUpdateChecker\v5p2\Plugin;

use YahnisElsts\PluginUpdateChecker\v5p1\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p1\UpdateChecker as BaseUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p1\Scheduler;
use YahnisElsts\PluginUpdateChecker\v5p1\DebugBar;
use YahnisElsts\PluginUpdateChecker\v5p2\InstalledPackage;
use YahnisElsts\PluginUpdateChecker\v5p2\UpdateChecker as BaseUpdateChecker;
use YahnisElsts\PluginUpdateChecker\v5p2\Scheduler;
use YahnisElsts\PluginUpdateChecker\v5p2\DebugBar;

if ( !class_exists(UpdateChecker::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace YahnisElsts\PluginUpdateChecker\v5p1;
namespace YahnisElsts\PluginUpdateChecker\v5p2;

use YahnisElsts\PluginUpdateChecker\v5p1\Plugin;
use YahnisElsts\PluginUpdateChecker\v5p1\Theme;
use YahnisElsts\PluginUpdateChecker\v5p1\Vcs;
use YahnisElsts\PluginUpdateChecker\v5p2\Plugin;
use YahnisElsts\PluginUpdateChecker\v5p2\Theme;
use YahnisElsts\PluginUpdateChecker\v5p2\Vcs;

if ( !class_exists(PucFactory::class, false) ):

Expand Down Expand Up @@ -147,7 +147,7 @@ public static function buildUpdateChecker($metadataUrl, $fullPath, $slug = '', $
*
* Normalize a filesystem path. Introduced in WP 3.9.
* Copying here allows use of the class on earlier versions.
* This version adapted from WP 4.8.2 (unchanged since 4.5.1)
* This version adapted from WP 4.8.2 (unchanged since 4.5.2)
*
* @param string $path Path to normalize.
* @return string Normalized path.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1;
namespace YahnisElsts\PluginUpdateChecker\v5p2;

if ( !class_exists(Scheduler::class, false) ):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace YahnisElsts\PluginUpdateChecker\v5p1;
namespace YahnisElsts\PluginUpdateChecker\v5p2;

if ( !class_exists(StateStore::class, false) ):

Expand Down
Loading

0 comments on commit 5e69a3f

Please sign in to comment.