Skip to content

Commit 5d64a05

Browse files
authored
Merge pull request #62 from happyprime/task/update-dependencies
Update project dependencies
2 parents e6c24f7 + 65313b5 commit 5d64a05

8 files changed

Lines changed: 252 additions & 255 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Shadow Terms plugin for WordPress
22

3-
Copyright 2022-2025 by Happy Prime and contributors
3+
Copyright 2022-2026 by Happy Prime and contributors
44

55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by

composer.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,24 @@
44
"type": "wordpress-plugin",
55
"license": "GPL-2.0-or-later",
66
"minimum-stability": "stable",
7+
"repositories": [
8+
{
9+
"type": "package",
10+
"package": {
11+
"name": "phpcompatibility/php-compatibility",
12+
"type": "phpcodesniffer-standard",
13+
"version": "9.99.9",
14+
"source": {
15+
"url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
16+
"type": "git",
17+
"reference": "9f7142356b5674164a6f6dbe12a7a1bcc632db21"
18+
}
19+
}
20+
}
21+
],
722
"require-dev": {
823
"happyprime/coding-standards": "*",
9-
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99"
24+
"phpcompatibility/php-compatibility": "9.99.9"
1025
},
1126
"scripts": {
1227
"phpcs": "vendor/bin/phpcs",

composer.lock

Lines changed: 220 additions & 249 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/api.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
namespace ShadowTerms\API;
99

10+
if ( ! defined( 'ABSPATH' ) ) {
11+
exit;
12+
}
13+
1014
/**
1115
* Retrieve a post's shadow taxonomy slug.
1216
*

includes/sync.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
namespace ShadowTerms\Sync;
99

10+
if ( ! defined( 'ABSPATH' ) ) {
11+
exit;
12+
}
13+
1014
add_action( 'wp_after_insert_post', __NAMESPACE__ . '\sync_shadow_taxonomies', 10, 4 );
1115
add_action( 'deleted_post', __NAMESPACE__ . '\delete_term', 10, 2 );
1216

includes/taxonomy.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
use ShadowTerms\API;
1111

12+
if ( ! defined( 'ABSPATH' ) ) {
13+
exit;
14+
}
15+
1216
add_action( 'init', __NAMESPACE__ . '\register', 9999 );
1317
add_action( 'rest_api_init', __NAMESPACE__ . '\register_route' );
1418

plugin.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626

2727
namespace ShadowTerms;
2828

29-
// If this file is called directly, abort.
30-
if ( ! defined( 'WPINC' ) ) {
31-
die;
29+
if ( ! defined( 'ABSPATH' ) ) {
30+
exit;
3231
}
3332

3433
require_once __DIR__ . '/includes/api.php';

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Contributors: happyprime, jeremyfelt, slocker, philcable, wpgirl369
33
Tags: terms, related, content
44
Requires at least: 5.9
5-
Tested up to: 6.8
5+
Tested up to: 6.9
66
Stable tag: 1.2.2
77
License: GPLv2 or later
88
Requires PHP: 7.4

0 commit comments

Comments
 (0)