Compare commits
3 Commits
430b3a5731
...
v0.1.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a5b751d12 | ||
|
|
52a49a53e8 | ||
|
|
9a758ba545 |
2
Makefile
2
Makefile
@@ -16,7 +16,7 @@ copy:
|
|||||||
cp -RT ./acf-json ./$(PACKAGE)/acf-json
|
cp -RT ./acf-json ./$(PACKAGE)/acf-json
|
||||||
cp -RT ./data ./$(PACKAGE)/data
|
cp -RT ./data ./$(PACKAGE)/data
|
||||||
cp -RT ./includes ./$(PACKAGE)/includes
|
cp -RT ./includes ./$(PACKAGE)/includes
|
||||||
cp -RT ./lang ./$(PACKAGE)/lang
|
cp -RT ./lang ./$(PACKAGE)/lang || true
|
||||||
cp -RT ./lib ./$(PACKAGE)/lib
|
cp -RT ./lib ./$(PACKAGE)/lib
|
||||||
cp -RT ./vendor ./$(PACKAGE)/vendor
|
cp -RT ./vendor ./$(PACKAGE)/vendor
|
||||||
cp -f ./* ./$(PACKAGE) || true
|
cp -f ./* ./$(PACKAGE) || true
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ abstract class PluginBase {
|
|||||||
add_action('init', [$this, 'setup_textdomain']);
|
add_action('init', [$this, 'setup_textdomain']);
|
||||||
|
|
||||||
// Requirements Check
|
// Requirements Check
|
||||||
add_action('plugins_loaded', [$this, 'check_requirements'], 1, 0);
|
add_action('after_setup_theme', [$this, 'check_requirements'], 1, 0);
|
||||||
|
|
||||||
$this->enable();
|
$this->enable();
|
||||||
}
|
}
|
||||||
@@ -46,11 +46,11 @@ abstract class PluginBase {
|
|||||||
// Plugin Initialization
|
// Plugin Initialization
|
||||||
|
|
||||||
protected function enable() {
|
protected function enable() {
|
||||||
add_action('plugins_loaded', [$this, 'load'], 10, 0);
|
add_action('after_setup_theme', [$this, 'load'], 10, 0);
|
||||||
add_filter('acf/settings/load_json', [$this, 'register_acf_json'], 10, 1);
|
add_filter('acf/settings/load_json', [$this, 'register_acf_json'], 10, 1);
|
||||||
}
|
}
|
||||||
protected function disable() {
|
protected function disable() {
|
||||||
remove_action('plugins_loaded', [$this, 'load'], 10, 0);
|
remove_action('after_setup_theme', [$this, 'load'], 10, 0);
|
||||||
remove_filter('acf/settings/load_json', [$this, 'register_acf_json'], 10, 1);
|
remove_filter('acf/settings/load_json', [$this, 'register_acf_json'], 10, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Plugin Name: OgreSchema
|
* Plugin Name: OgreSchema
|
||||||
* Plugin URI: https://plugins.cleverogre.com/plugin/ogreschema/
|
* Plugin URI: https://plugins.cleverogre.com/plugin/ogreschema/
|
||||||
* Description: Output schema site-wide for your website.
|
* Description: Output schema site-wide for your website.
|
||||||
* Version: 0.1.1
|
* Version: 0.1.2
|
||||||
* Requires at Least: 6.0
|
* Requires at Least: 6.0
|
||||||
* Requires PHP: 8.0
|
* Requires PHP: 8.0
|
||||||
* Author: CleverOgre
|
* Author: CleverOgre
|
||||||
@@ -36,8 +36,8 @@ class Plugin extends PluginBase {
|
|||||||
$this->add_requirement('advanced-custom-fields', [
|
$this->add_requirement('advanced-custom-fields', [
|
||||||
'name' => 'Advanced Custom Fields PRO',
|
'name' => 'Advanced Custom Fields PRO',
|
||||||
'url' => 'https://www.advancedcustomfields.com/',
|
'url' => 'https://www.advancedcustomfields.com/',
|
||||||
'type' => self::REQUIREMENT_PLUGIN,
|
'type' => self::REQUIREMENT_CLASS,
|
||||||
'plugin' => 'advanced-custom-fields-pro/acf.php',
|
'class' => '\ACF',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->add_files([
|
$this->add_files([
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ogre-schema",
|
"name": "ogre-schema",
|
||||||
"title": "OgreSchema",
|
"title": "OgreSchema",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"author": "CleverOgre",
|
"author": "CleverOgre",
|
||||||
"license": "GPL-3.0+",
|
"license": "GPL-3.0+",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Donate link: https://cleverogre.com/
|
|||||||
Tags: gravityforms, feed, jobs, resume, application
|
Tags: gravityforms, feed, jobs, resume, application
|
||||||
Requires at least: 6.0.0
|
Requires at least: 6.0.0
|
||||||
Tested up to: 6.4.3
|
Tested up to: 6.4.3
|
||||||
Stable tag: 0.1.1
|
Stable tag: 0.1.2
|
||||||
License: GPLv2 or later
|
License: GPLv2 or later
|
||||||
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
@@ -28,6 +28,10 @@ If you do know what plugin you have downloaded, please contact [CleverOgre](team
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 0.1.2 - 2025-11-05 =
|
||||||
|
* BUG: Allow theme-included ACF Pro as requirement.
|
||||||
|
* DEV: Fixed minor build issues.
|
||||||
|
|
||||||
= 0.1.1 - 2025-05-21 =
|
= 0.1.1 - 2025-05-21 =
|
||||||
* BUG: Fix `load_plugin_textdomain` deprecation.
|
* BUG: Fix `load_plugin_textdomain` deprecation.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user