4 Commits

Author SHA1 Message Date
b3233a13b9 Merge pull request 'Add Slugs to Admin UI' (#3) from admin-taxonomy-name into main
Reviewed-on: #3
2026-03-03 20:04:56 +00:00
Cooper Dalrymple
fe1ff96dbc Add name slugs to admin ui 2026-03-03 14:02:49 -06:00
Cooper Dalrymple
d1ae5f021a Fix undefined array key notice 2026-01-23 09:34:32 -06:00
Cooper Dalrymple
7b4aa346c6 Update packages 2026-01-21 20:21:39 -06:00
4 changed files with 13 additions and 12 deletions

2
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "fe877c0f300b012a3667fb458d1768b3",
"content-hash": "0e7b2523bace7acb04e7c97d1e711d62",
"packages": [
{
"name": "cleverogre/plugin-framework",

View File

@@ -53,7 +53,7 @@ final class Refresh {
}
public function handle_notices():void {
if (!current_user_can(self::CAPABILITY) || $_GET['page'] != Plugin::get_id() || !isset($_GET[self::ACTION])) return;
if (!current_user_can(self::CAPABILITY) || !isset($_GET['page']) || $_GET['page'] != Plugin::get_id() || !isset($_GET[self::ACTION])) return;
printf(
'<div class="notice notice-success is-dismissable"><p>%s</p></div>',
Plugin::esc_html__('All sort relationships successfully refreshed!')

View File

@@ -196,12 +196,13 @@ final class Settings {
echo implode('<br>', array_map(
fn (object $option):string => sprintf(
'<label><input type="checkbox" name="%s[%s][]" value="%s" %s>&nbsp;%s</label>',
'<label><input type="checkbox" name="%s[%s][]" value="%s" %s>&nbsp;%s (%s)</label>',
esc_attr(Plugin::get_id()),
esc_attr($name),
esc_attr($option->name),
checked($this->is_checked($name, $option->name), display: false),
esc_html($option->label)
esc_html($option->label),
esc_html($option->name)
),
$options
));

16
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "cleverogre/ogre-sort",
"version": "1.0.0",
"version": "1.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cleverogre/ogre-sort",
"version": "1.0.0",
"version": "1.1.0",
"license": "GPL-3.0+",
"devDependencies": {
"gulp": "^5.0.0",
@@ -57,9 +57,9 @@
"license": "MIT"
},
"node_modules/@types/node": {
"version": "24.10.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz",
"integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==",
"version": "25.0.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.10.tgz",
"integrity": "sha512-zWW5KPngR/yvakJgGOmZ5vTBemDoSqF3AcV/LrO5u5wTWyEAVVh+IT39G4gtyAkh3CtTZs8aX/yRM82OfzHJRg==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1400,9 +1400,9 @@
}
},
"node_modules/fastq": {
"version": "1.19.1",
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",
"integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",
"version": "1.20.1",
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",
"integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",
"dev": true,
"license": "ISC",
"dependencies": {