Rename
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
all: install
|
||||||
|
|
||||||
|
reinstall: clean install
|
||||||
|
|
||||||
|
clean: clean-composer clean-npm
|
||||||
|
|
||||||
|
clean-composer:
|
||||||
|
rm -rf vendor/* || true
|
||||||
|
rm -rf lib/* || true
|
||||||
|
rm composer.lock || true
|
||||||
|
composer clearcache
|
||||||
|
|
||||||
|
clean-npm:
|
||||||
|
rm -rf node_modules/* || true
|
||||||
|
rm package-lock.json || true
|
||||||
|
|
||||||
|
install:
|
||||||
|
composer install
|
||||||
|
npm install
|
||||||
|
|
||||||
|
package: install
|
||||||
|
gulp package
|
||||||
|
|||||||
+8
-5
@@ -1,14 +1,17 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://getcomposer.org/schema.json",
|
"$schema": "https://getcomposer.org/schema.json",
|
||||||
"name": "cleverogre/plugin",
|
"name": "cleverogre/ogre-captcha",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"title": "Example",
|
"title": "Ogre CAPTCHA",
|
||||||
"description": "Example plugin",
|
"description": "Protect your site with CAPTCHA",
|
||||||
"author": "CleverOgre",
|
"author": "CleverOgre",
|
||||||
"license": "GPL-3.0+",
|
"license": "GPL-3.0+",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"WordPress",
|
"WordPress",
|
||||||
"Plugin"
|
"Plugin",
|
||||||
|
"Cap",
|
||||||
|
"CAPTCHA",
|
||||||
|
"Security"
|
||||||
],
|
],
|
||||||
"homepage": "https://cleverogre.com",
|
"homepage": "https://cleverogre.com",
|
||||||
"repositories": {
|
"repositories": {
|
||||||
@@ -45,7 +48,7 @@
|
|||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"files": [
|
"files": [
|
||||||
"plugin.php"
|
"ogre-captcha.php"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package plugin
|
* @package ogre-captcha
|
||||||
* @author cleverogre
|
* @author cleverogre
|
||||||
* @copyright 2026 CleverOgre
|
* @copyright 2026 CleverOgre
|
||||||
* @license GLP-3.0-or-later
|
* @license GLP-3.0-or-later
|
||||||
@@ -8,10 +8,10 @@
|
|||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Ogre\Example;
|
namespace Ogre\Captcha;
|
||||||
|
|
||||||
use Ogre\Singleton;
|
use Ogre\Singleton;
|
||||||
use Ogre\Example as Plugin;
|
use Ogre\Captcha as Plugin;
|
||||||
|
|
||||||
defined('ABSPATH') || exit;
|
defined('ABSPATH') || exit;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* Plugin
|
* Plugin
|
||||||
*
|
*
|
||||||
* @package plugin
|
* @package ogre-captcha
|
||||||
* @author cleverogre
|
* @author cleverogre
|
||||||
* @copyright 2026 CleverOgre
|
* @copyright 2026 CleverOgre
|
||||||
* @license GLP-3.0-or-later
|
* @license GLP-3.0-or-later
|
||||||
@@ -10,30 +10,30 @@
|
|||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*
|
*
|
||||||
* @wordpress-plugin
|
* @wordpress-plugin
|
||||||
* Plugin Name: Example
|
* Plugin Name: Ogre CAPTCHA
|
||||||
* Plugin URI: https://git.cleverogre.com/cleverogre/plugin/
|
* Plugin URI: https://git.cleverogre.com/cleverogre/ogre-captcha/
|
||||||
* Description: Example plugin
|
* Description: Protect your site with CAPTCHA
|
||||||
* Version: 0.0.0
|
* Version: 0.0.0
|
||||||
* Requires at least: 6.0
|
* Requires at least: 6.0
|
||||||
* Requires PHP: 8.2
|
* Requires PHP: 8.2
|
||||||
* Author: CleverOgre
|
* Author: CleverOgre
|
||||||
* Author URI: https://cleverogre.com/
|
* Author URI: https://cleverogre.com/
|
||||||
* Text Domain: plugin
|
* Text Domain: ogre-captcha
|
||||||
* License: GPLv3 or later
|
* License: GPLv3 or later
|
||||||
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||||
* Update URI: https://git.cleverogre.com/cleverogre/plugin/
|
* Update URI: https://git.cleverogre.com/cleverogre/ogre-captcha/
|
||||||
* Domain Path: /lang
|
* Domain Path: /lang
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Ogre;
|
namespace Ogre;
|
||||||
|
|
||||||
use Ogre\Example\Settings;
|
use Ogre\Captcha\Settings;
|
||||||
|
|
||||||
defined('ABSPATH') || exit;
|
defined('ABSPATH') || exit;
|
||||||
|
|
||||||
require_once 'vendor/autoload.php';
|
require_once 'vendor/autoload.php';
|
||||||
|
|
||||||
final class Example extends Plugin {
|
final class Captcha extends Plugin {
|
||||||
|
|
||||||
protected function __construct() {
|
protected function __construct() {
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
@@ -66,4 +66,4 @@ final class Example extends Plugin {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Example::instance();
|
Captcha::instance();
|
||||||
Generated
+2
-2
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "cleverogre/plugin",
|
"name": "cleverogre/ogre-captcha",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "cleverogre/plugin",
|
"name": "cleverogre/ogre-captcha",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"license": "GPL-3.0+",
|
"license": "GPL-3.0+",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
+7
-4
@@ -1,14 +1,17 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://www.schemastore.org/package.json",
|
"$schema": "https://www.schemastore.org/package.json",
|
||||||
"name": "cleverogre/plugin",
|
"name": "cleverogre/ogre-captcha",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"title": "Example",
|
"title": "Ogre CAPTCHA",
|
||||||
"description": "Example plugin",
|
"description": "Protect your site with CAPTCHA",
|
||||||
"author": "CleverOgre",
|
"author": "CleverOgre",
|
||||||
"license": "GPL-3.0+",
|
"license": "GPL-3.0+",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"WordPress",
|
"WordPress",
|
||||||
"Plugin"
|
"Plugin",
|
||||||
|
"Cap",
|
||||||
|
"CAPTCHA",
|
||||||
|
"Security"
|
||||||
],
|
],
|
||||||
"homepage": "https://cleverogre.com",
|
"homepage": "https://cleverogre.com",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
+4
-4
@@ -1,4 +1,4 @@
|
|||||||
=== Example ===
|
=== Ogre CAPTCHA ===
|
||||||
Contributors: ogrecooper, cleverogre
|
Contributors: ogrecooper, cleverogre
|
||||||
Tested up to: 7.0
|
Tested up to: 7.0
|
||||||
Requires at least: 6.0
|
Requires at least: 6.0
|
||||||
@@ -8,9 +8,9 @@ License: GPLv3 or later
|
|||||||
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||||
Copyright: CleverOgre
|
Copyright: CleverOgre
|
||||||
Donate link: https://cleverogre.com/
|
Donate link: https://cleverogre.com/
|
||||||
Tags: wordpress, plugin
|
Tags: wordpress, plugin, cap, captcha, security
|
||||||
|
|
||||||
Example plugin
|
Protect your site with CAPTCHA
|
||||||
|
|
||||||
== Installation ==
|
== Installation ==
|
||||||
|
|
||||||
@@ -28,5 +28,5 @@ If you don't know what plugin you have downloaded, please contact [CleverOgre](t
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
= 0.0.0 - YYYY-MM-DD =
|
= 0.1.0 - 2026-06-04 =
|
||||||
* Initial release
|
* Initial release
|
||||||
|
|||||||
Reference in New Issue
Block a user