diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist
index ded2c42..2e30521 100644
--- a/.phpcs.xml.dist
+++ b/.phpcs.xml.dist
@@ -30,7 +30,7 @@
-
+
@@ -120,5 +120,5 @@
-
+
diff --git a/.prettierrc b/.prettierrc
deleted file mode 100644
index 2353765..0000000
--- a/.prettierrc
+++ /dev/null
@@ -1 +0,0 @@
-"@wordpress/prettier-config"
diff --git a/.prettierrc.mjs b/.prettierrc.mjs
new file mode 100644
index 0000000..242e7ea
--- /dev/null
+++ b/.prettierrc.mjs
@@ -0,0 +1,6 @@
+import wpPrettierConfig from '@wordpress/prettier-config';
+
+export default {
+ ...wpPrettierConfig,
+ printWidth: 100,
+};
diff --git a/assets/js/admin.js b/assets/js/admin.js
index 661e4a6..43aac8d 100644
--- a/assets/js/admin.js
+++ b/assets/js/admin.js
@@ -12,8 +12,7 @@
var $targetStatus = $this.hasClass( 'selected' ) ? 'no' : 'yes';
var $unoStatus = typeof $this.data( 'uno' ) !== 'undefined' ? 1 : 0;
- var $maxStatus =
- typeof $this.data( 'max_status' ) !== 'undefined' ? 1 : 0;
+ var $maxStatus = typeof $this.data( 'max_status' ) !== 'undefined' ? 1 : 0;
$.post(
NSFP_OBJ.ajaxurl,
diff --git a/assets/js/settings.js b/assets/js/settings.js
index 4c32d5b..12863e2 100644
--- a/assets/js/settings.js
+++ b/assets/js/settings.js
@@ -25,11 +25,7 @@
data.forEach( function ( item ) {
output +=
- '' +
- item.title +
- '';
+ '' + item.title + '';
} );
return $( '<' + settings.list_type + '/>' ).append( output );
}
diff --git a/composer.json b/composer.json
index a3ed1fa..79e6c35 100644
--- a/composer.json
+++ b/composer.json
@@ -12,9 +12,9 @@
}
],
"require": {
- "php": ">=5.6",
+ "php": ">=7.2.24",
"ernilambar/optioner": "^2.0",
- "ernilambar/wp-admin-notice": "^1.0"
+ "ernilambar/wp-admin-notice": "^2.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
@@ -27,17 +27,17 @@
"sort-packages": true
},
"scripts": {
- "phpcbf": [
- "composer --working-dir=devtools update --no-interaction",
- "devtools/vendor/bin/phpcbf --standard=.phpcs.xml.dist"
- ],
- "phpcs": [
- "composer --working-dir=devtools update --no-interaction",
- "devtools/vendor/bin/phpcs --standard=.phpcs.xml.dist"
- ],
- "pot": [
- "composer --working-dir=devtools update --no-interaction",
- "devtools/vendor/bin/wp i18n make-pot . --exclude=build,deploy,node_modules,vendor --headers='{\"POT-Creation-Date\":\"\"}'"
- ]
- }
+ "phpcbf": [
+ "composer --working-dir=devtools update --no-interaction",
+ "devtools/vendor/bin/phpcbf --standard=.phpcs.xml.dist"
+ ],
+ "phpcs": [
+ "composer --working-dir=devtools update --no-interaction",
+ "devtools/vendor/bin/phpcs --standard=.phpcs.xml.dist"
+ ],
+ "pot": [
+ "composer --working-dir=devtools update --no-interaction",
+ "devtools/vendor/bin/wp i18n make-pot . --exclude=build,deploy,node_modules,vendor --headers='{\"POT-Creation-Date\":\"\"}'"
+ ]
+ }
}
diff --git a/composer.lock b/composer.lock
index 0eb189f..849fd87 100644
--- a/composer.lock
+++ b/composer.lock
@@ -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": "cb13d445804ec9613b089808463a19b8",
+ "content-hash": "87b8eecd43691dd5d07b5e48e139423e",
"packages": [
{
"name": "ernilambar/optioner",
@@ -50,20 +50,27 @@
},
{
"name": "ernilambar/wp-admin-notice",
- "version": "1.0.2",
+ "version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/ernilambar/wp-admin-notice.git",
- "reference": "626e4685775bdd06085e7af76f9ae9380c68c9f0"
+ "reference": "ef71e83f6e82d3224783756426ddb209991e30cb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/ernilambar/wp-admin-notice/zipball/626e4685775bdd06085e7af76f9ae9380c68c9f0",
- "reference": "626e4685775bdd06085e7af76f9ae9380c68c9f0",
+ "url": "https://api.github.com/repos/ernilambar/wp-admin-notice/zipball/ef71e83f6e82d3224783756426ddb209991e30cb",
+ "reference": "ef71e83f6e82d3224783756426ddb209991e30cb",
"shasum": ""
},
"require": {
- "php": ">=5.6"
+ "php": ">=7.2.24"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
+ "php-parallel-lint/php-parallel-lint": "^1.4",
+ "phpcompatibility/phpcompatibility-wp": "^2.1",
+ "roave/security-advisories": "dev-latest",
+ "wp-coding-standards/wpcs": "^3.1"
},
"type": "library",
"autoload": {
@@ -91,9 +98,9 @@
],
"support": {
"issues": "https://github.com/ernilambar/wp-admin-notice/issues/",
- "source": "https://github.com/ernilambar/wp-admin-notice/tree/1.0.2"
+ "source": "https://github.com/ernilambar/wp-admin-notice/tree/2.0.0"
},
- "time": "2023-05-29T05:53:39+00:00"
+ "time": "2024-07-26T10:24:55+00:00"
}
],
"packages-dev": [],
@@ -103,7 +110,7 @@
"prefer-stable": true,
"prefer-lowest": false,
"platform": {
- "php": ">=5.6"
+ "php": ">=7.2.24"
},
"platform-dev": [],
"plugin-api-version": "2.2.0"
diff --git a/languages/ns-featured-posts.pot b/languages/ns-featured-posts.pot
index c4bcc1a..4d321dd 100644
--- a/languages/ns-featured-posts.pot
+++ b/languages/ns-featured-posts.pot
@@ -2,7 +2,7 @@
# This file is distributed under the GPL-2.0+.
msgid ""
msgstr ""
-"Project-Id-Version: NS Featured Posts 2.0.13\n"
+"Project-Id-Version: NS Featured Posts 3.0.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ns-featured-posts\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -16,9 +16,9 @@ msgstr ""
#. Plugin Name of the plugin
#: ns-featured-posts.php
-#: includes/classes/class-ns-featured-posts-admin.php:115
-#: includes/classes/class-ns-featured-posts-admin.php:130
+#: includes/classes/class-ns-featured-posts-admin.php:118
#: includes/classes/class-ns-featured-posts-admin.php:133
+#: includes/classes/class-ns-featured-posts-admin.php:136
#: includes/widgets/nsfp-featured-post-widget.php:28
msgid "NS Featured Posts"
msgstr ""
@@ -44,78 +44,78 @@ msgid "https://www.nilambar.net"
msgstr ""
#. translators: %s: version
-#: includes/classes/class-ns-featured-posts-admin.php:132
+#: includes/classes/class-ns-featured-posts-admin.php:135
msgid "Version: %s"
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:159
-#: includes/classes/class-ns-featured-posts-admin.php:277
+#: includes/classes/class-ns-featured-posts-admin.php:162
+#: includes/classes/class-ns-featured-posts-admin.php:280
msgid "Settings"
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:169
+#: includes/classes/class-ns-featured-posts-admin.php:172
msgid "Enable Featured for"
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:180
+#: includes/classes/class-ns-featured-posts-admin.php:183
msgid "Enable Radio Mode for"
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:181
+#: includes/classes/class-ns-featured-posts-admin.php:184
msgid "If checked, only one post can be made featured."
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:192
+#: includes/classes/class-ns-featured-posts-admin.php:195
msgid "Max Posts Number"
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:193
+#: includes/classes/class-ns-featured-posts-admin.php:196
msgid "Maximum posts for the post type."
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:205
+#: includes/classes/class-ns-featured-posts-admin.php:208
msgid "Enable Max Posts for"
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:247
+#: includes/classes/class-ns-featured-posts-admin.php:250
#: includes/widgets/nsfp-featured-post-widget.php:155
msgid "Post"
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:248
+#: includes/classes/class-ns-featured-posts-admin.php:251
#: includes/widgets/nsfp-featured-post-widget.php:156
msgid "Page"
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:307
-#: includes/classes/class-ns-featured-posts-admin.php:547
-#: includes/classes/class-ns-featured-posts-admin.php:670
-#: includes/classes/class-ns-featured-posts-admin.php:766
+#: includes/classes/class-ns-featured-posts-admin.php:310
+#: includes/classes/class-ns-featured-posts-admin.php:556
+#: includes/classes/class-ns-featured-posts-admin.php:679
+#: includes/classes/class-ns-featured-posts-admin.php:771
msgid "Featured"
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:372
+#: includes/classes/class-ns-featured-posts-admin.php:375
msgid "Nonce verification failed."
msgstr ""
#. translators: %s: max posts number
-#: includes/classes/class-ns-featured-posts-admin.php:410
+#: includes/classes/class-ns-featured-posts-admin.php:413
msgid "Maximum %s posts can be set as featured."
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:567
+#: includes/classes/class-ns-featured-posts-admin.php:576
msgid "Check this to make featured."
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:637
+#: includes/classes/class-ns-featured-posts-admin.php:646
msgid "Post could not be set as featured. Maximum posts limit reached."
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:669
+#: includes/classes/class-ns-featured-posts-admin.php:678
msgid "Show All"
msgstr ""
-#: includes/classes/class-ns-featured-posts-admin.php:671
+#: includes/classes/class-ns-featured-posts-admin.php:680
msgid "Not Featured"
msgstr ""
diff --git a/ns-featured-posts.php b/ns-featured-posts.php
index 6197727..5dbba5c 100644
--- a/ns-featured-posts.php
+++ b/ns-featured-posts.php
@@ -3,7 +3,9 @@
* Plugin Name: NS Featured Posts
* Plugin URI: https://www.nilambar.net/2014/07/ns-featured-posts-wordpress-plugin.html
* Description: Plugin to make your posts, pages and custom post types Featured
- * Version: 2.0.13
+ * Version: 3.0.0
+ * Requires at least: 6.0
+ * Requires PHP: 7.2
* Author: Nilambar Sharma
* Author URI: https://www.nilambar.net
* Text Domain: ns-featured-posts
@@ -19,7 +21,7 @@
die;
}
-define( 'NS_FEATURED_POSTS_VERSION', '2.0.13' );
+define( 'NS_FEATURED_POSTS_VERSION', '3.0.0' );
define( 'NS_FEATURED_POSTS_BASENAME', basename( __DIR__ ) );
define( 'NS_FEATURED_POSTS_DIR', rtrim( plugin_dir_path( __FILE__ ), '/' ) );
define( 'NS_FEATURED_POSTS_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
diff --git a/package.json b/package.json
index 5305a78..78e809b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ns-featured-posts",
- "version": "2.0.13",
+ "version": "3.0.0",
"description": "NS Featured Posts",
"author": "Nilambar Sharma",
"license": "GPL-2.0-or-later",
@@ -17,12 +17,14 @@
"bugs": {
"url": "https://github.com/ernilambar/ns-featured-posts/issues"
},
+ "browserslist": "> 1%, not dead",
"packtor": {
"files": [
"**/*",
"!*.js",
"!*.json",
"!*.lock",
+ "!*.md",
"!*.yaml",
"!devtools/**/*"
]
@@ -33,7 +35,6 @@
"buildDir": "deploy/ns-featured-posts",
"deployAssets": false
},
- "browserslist": "> 1%, not dead",
"npmpackagejsonlint": {
"extends": "@wordpress/npm-package-json-lint-config"
},
@@ -44,7 +45,7 @@
"npm-package-json-lint": "^8.0.0",
"packtor": "^1.0.2",
"prettier": "npm:wp-prettier@^3.0.3",
- "shx": "^0.3.4",
+ "rimraf": "^6.0.1",
"wp-deployer": "^1.0.3"
},
"scripts": {
@@ -54,7 +55,7 @@
"lint-pkg-json": "npmPkgJsonLint .",
"prewpdeploy": "pnpm run deploy",
"wpdeploy": "wp-deployer",
- "predeploy": "shx rm -rf vendor/ && composer install --no-dev --no-scripts -o",
+ "predeploy": "rimraf deploy vendor && composer install --no-dev --no-scripts -o",
"deploy": "packtor"
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5f58687..dd79b5a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -26,9 +26,9 @@ importers:
prettier:
specifier: npm:wp-prettier@^3.0.3
version: wp-prettier@3.0.3
- shx:
- specifier: ^0.3.4
- version: 0.3.4
+ rimraf:
+ specifier: ^6.0.1
+ version: 6.0.1
wp-deployer:
specifier: ^1.0.3
version: 1.0.3
@@ -467,6 +467,11 @@ packages:
engines: {node: '>=18'}
hasBin: true
+ glob@11.0.0:
+ resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==}
+ engines: {node: 20 || >=22}
+ hasBin: true
+
glob@7.2.3:
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
deprecated: Glob versions prior to v9 are no longer supported
@@ -527,10 +532,6 @@ packages:
inherits@2.0.4:
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
- interpret@1.4.0:
- resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==}
- engines: {node: '>= 0.10'}
-
irregular-plurals@3.5.0:
resolution: {integrity: sha512-1ANGLZ+Nkv1ptFb2pa8oG8Lem4krflKuX/gINiHJHjJUKaJHk/SXk5x6K3J+39/p0h1RQ2saROclJJ+QLvETCQ==}
engines: {node: '>=8'}
@@ -583,6 +584,10 @@ packages:
resolution: {integrity: sha512-U23pQPDnmYybVkYjObcuYMk43VRlMLLqLI+RdZy8s8WV8WsxO9SnqSroKaluuvcNOdCAlauKszDwd+umbot5Mg==}
engines: {node: '>=18'}
+ jackspeak@4.0.1:
+ resolution: {integrity: sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==}
+ engines: {node: 20 || >=22}
+
js-tokens@4.0.0:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
@@ -657,6 +662,10 @@ packages:
resolution: {integrity: sha512-9/8QXrtbGeMB6LxwQd4x1tIMnsmUxMvIH/qWGsccz6bt9Uln3S+sgAaqfQNhbGA8ufzs2fHuP/yqapGgP9Hh2g==}
engines: {node: '>=18'}
+ lru-cache@11.0.0:
+ resolution: {integrity: sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==}
+ engines: {node: 20 || >=22}
+
lru-cache@5.1.1:
resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
@@ -688,6 +697,10 @@ packages:
resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}
engines: {node: '>=4'}
+ minimatch@10.0.1:
+ resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==}
+ engines: {node: 20 || >=22}
+
minimatch@3.1.2:
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
@@ -703,9 +716,6 @@ packages:
resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==}
engines: {node: '>= 6'}
- minimist@1.2.8:
- resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
-
minipass@7.1.2:
resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}
engines: {node: '>=16 || 14 >=14.17'}
@@ -805,6 +815,10 @@ packages:
resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==}
engines: {node: '>=16 || 14 >=14.18'}
+ path-scurry@2.0.0:
+ resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==}
+ engines: {node: 20 || >=22}
+
path-type@4.0.0:
resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
engines: {node: '>=8'}
@@ -863,10 +877,6 @@ packages:
readdir-glob@1.1.3:
resolution: {integrity: sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==}
- rechoir@0.6.2:
- resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==}
- engines: {node: '>= 0.10'}
-
redent@3.0.0:
resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==}
engines: {node: '>=8'}
@@ -900,6 +910,11 @@ packages:
engines: {node: '>=18'}
hasBin: true
+ rimraf@6.0.1:
+ resolution: {integrity: sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==}
+ engines: {node: 20 || >=22}
+ hasBin: true
+
run-parallel@1.2.0:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
@@ -930,16 +945,6 @@ packages:
resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
engines: {node: '>=8'}
- shelljs@0.8.5:
- resolution: {integrity: sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==}
- engines: {node: '>=4'}
- hasBin: true
-
- shx@0.3.4:
- resolution: {integrity: sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==}
- engines: {node: '>=6'}
- hasBin: true
-
signal-exit@4.1.0:
resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
engines: {node: '>=14'}
@@ -1653,6 +1658,15 @@ snapshots:
package-json-from-dist: 1.0.0
path-scurry: 1.11.1
+ glob@11.0.0:
+ dependencies:
+ foreground-child: 3.2.1
+ jackspeak: 4.0.1
+ minimatch: 10.0.1
+ minipass: 7.1.2
+ package-json-from-dist: 1.0.0
+ path-scurry: 2.0.0
+
glob@7.2.3:
dependencies:
fs.realpath: 1.0.0
@@ -1709,8 +1723,6 @@ snapshots:
inherits@2.0.4: {}
- interpret@1.4.0: {}
-
irregular-plurals@3.5.0: {}
is-arrayish@0.2.1: {}
@@ -1747,6 +1759,12 @@ snapshots:
optionalDependencies:
'@pkgjs/parseargs': 0.11.0
+ jackspeak@4.0.1:
+ dependencies:
+ '@isaacs/cliui': 8.0.2
+ optionalDependencies:
+ '@pkgjs/parseargs': 0.11.0
+
js-tokens@4.0.0: {}
js-yaml@4.1.0:
@@ -1804,6 +1822,8 @@ snapshots:
lru-cache@10.3.1: {}
+ lru-cache@11.0.0: {}
+
lru-cache@5.1.1:
dependencies:
yallist: 3.1.1
@@ -1840,6 +1860,10 @@ snapshots:
min-indent@1.0.1: {}
+ minimatch@10.0.1:
+ dependencies:
+ brace-expansion: 2.0.1
+
minimatch@3.1.2:
dependencies:
brace-expansion: 1.1.11
@@ -1858,8 +1882,6 @@ snapshots:
is-plain-obj: 1.1.0
kind-of: 6.0.3
- minimist@1.2.8: {}
-
minipass@7.1.2: {}
mkdirp@1.0.4: {}
@@ -1973,6 +1995,11 @@ snapshots:
lru-cache: 10.3.1
minipass: 7.1.2
+ path-scurry@2.0.0:
+ dependencies:
+ lru-cache: 11.0.0
+ minipass: 7.1.2
+
path-type@4.0.0: {}
picocolors@1.0.1: {}
@@ -2044,10 +2071,6 @@ snapshots:
dependencies:
minimatch: 5.1.6
- rechoir@0.6.2:
- dependencies:
- resolve: 1.22.8
-
redent@3.0.0:
dependencies:
indent-string: 4.0.0
@@ -2077,6 +2100,11 @@ snapshots:
dependencies:
glob: 10.4.3
+ rimraf@6.0.1:
+ dependencies:
+ glob: 11.0.0
+ package-json-from-dist: 1.0.0
+
run-parallel@1.2.0:
dependencies:
queue-microtask: 1.2.3
@@ -2097,17 +2125,6 @@ snapshots:
shebang-regex@3.0.0: {}
- shelljs@0.8.5:
- dependencies:
- glob: 7.2.3
- interpret: 1.4.0
- rechoir: 0.6.2
-
- shx@0.3.4:
- dependencies:
- minimist: 1.2.8
- shelljs: 0.8.5
-
signal-exit@4.1.0: {}
slash@3.0.0: {}
diff --git a/readme.txt b/readme.txt
index f87055a..f169d6c 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,141 +1,144 @@
-=== NS Featured Posts ===
-
-Contributors: rabmalin
-Donate link: https://www.nilambar.net/2014/07/ns-featured-posts-wordpress-plugin.html
-Tags: post, custom, meta, featured, featured-post
-Requires at least: 4.9
-Requires PHP: 5.6
-Tested up to: 6.5
-Stable tag: 2.0.13
-License: GPLv2 or later
-License URI: http://www.gnu.org/licenses/gpl-2.0.html
-
-A plugin for making posts, pages, or custom post types featured. Users can enable/disable Featured flags for selected post types.
-
-== Description ==
-
-NS Featured Posts
This plugin adds checkboxes for each list item. You can easily check/uncheck the Featured flag. Checking the Featured will set the meta value **yes** for meta key **_is_ns_featured_post**. You can choose which post types you want Featured functionality from plugin settings.
-
-= Using in theme =
-This plugin only sets/unsets the meta key for assigned posts. You need to implement it in your theme to get Featured functionality.
-
-Example:
-
-
-`$query = new WP_Query( array( 'meta_key' => '_is_ns_featured_post', 'meta_value' => 'yes' ) );`
-
-
-This will fetch the list of posts that are checked as Featured.
-
-**Want to see how this can be used in a Page Template?**
-[Click this link to see an example](https://gist.github.com/ernilambar/ad31b89b459e954fc950)
-
-
-== Installation ==
-
-= Using The WordPress Dashboard =
-
-1. Navigate to the 'Add New' Plugin Dashboard
-1. Select 'ns-featured-posts.zip' from your computer
-1. Upload
-1. Activate the plugin on the WordPress Plugin Dashboard
-1. Place the 'NS Featured Posts Widget' into a Widget area through the 'Appearance -> Widgets' menu in WordPress.
-
-= Using FTP =
-
-1. Extract 'ns-featured-posts.zip' to your computer
-1. Upload the 'ns-featured-posts' directory to your 'wp-content/plugins' directory
-1. Activate the plugin on the WordPress Plugins dashboard
-1. Place the 'NS Featured Posts Widget' into a Widget area through the 'Appearance -> Widgets' menu in WordPress.
-
-== Frequently Asked Questions ==
-
-= Does this support custom post types? =
-
-Yes. It supports custom post types also. From the Settings page( Settings -> NS Featured Posts), you can enable/disable custom post types for featured.
-
-== Screenshots ==
-
-1. Admin Settings page
-2. Example of featured in Post listing
-
-== Changelog ==
-
-= 2.0.13 - 17 May 2024 =
-* Fix PHP 8.3 notice
-
-= 2.0.12 - 16 May 2024 =
-* Add blueprint
-
-= 2.0.11 - 15 May 2024 =
-* Fix URLs
-
-= 2.0.10 - 23 May 2023 =
-* Update packages
-
-= 2.0.9 - 4 Feb 2023 =
-* Fix PHP 8 notices
-
-= 2.0.8 - 17 Oct 2022 =
-* Fix PHP notice on the plugins page
-
-= 2.0.7 - 11 Oct 2022 =
-* Minor bug fixes
-
-= 2.0.6 - 4 Jul 2022 =
-* Minor bug fixes
-
-= 2.0.5 - 24 Jun 2022 =
-* Minor bug fixes
-
-= 2.0.4 - 9 Jan 2022 =
-* Add order options in widget
-* Minor bug fixes
-
-= 2.0.3 - 20 Jul 2021 =
-* Compatibility with WP 5.8
-* Minor bug fixes
-
-= 2.0.2 =
-* Minor bug fixes
-
-= 2.0.1 =
-* Fix bug of cpt
-
-= 2.0.0 =
-* Major code refactoring
-* Add radio mode
-* Add max posts option
-* Minor bug fixes
-
-= 1.4.1 =
-* Fix links
-
-= 1.4.0 =
-* Fix: Allow Editor to toggle checkbox
-* Compatibility with WP 4.6
-* Fix: Minor Bug fixes
-
-= 1.3 =
-* Fix: Minor Bug fixes
-
-= 1.2 =
-* Fix: Minor Bug fixes
-
-= 1.1 =
-* New: Metabox added in edit screen to enable/disable featured
-* Fix: Minor Bug fixes
-* Compatibility: Compatibility check with WP 4.2
-
-= 1.0.2 =
-* Bug fixes
-
-= 1.0.1 =
-* Add Featured Posts Widget
-* Bug fixes
-
-= 1.0.0 =
-* Initial release
-
-== Upgrade Notice ==
-NS Featured Posts
+=== NS Featured Posts ===
+
+Contributors: rabmalin
+Donate link: https://www.nilambar.net/2014/07/ns-featured-posts-wordpress-plugin.html
+Tags: post, custom, meta, featured, featured-post
+Tested up to: 6.6
+Stable tag: 3.0.0
+License: GPLv2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+
+A plugin for making posts, pages, or custom post types featured. Users can enable/disable Featured flags for selected post types.
+
+== Description ==
+
+NS Featured Posts
This plugin adds checkboxes for each list item. You can easily check/uncheck the Featured flag. Checking the Featured will set the meta value **yes** for meta key **_is_ns_featured_post**. You can choose which post types you want Featured functionality from plugin settings.
+
+= Using in theme =
+This plugin only sets/unsets the meta key for assigned posts. You need to implement it in your theme to get Featured functionality.
+
+Example:
+
+
+`$query = new WP_Query( array( 'meta_key' => '_is_ns_featured_post', 'meta_value' => 'yes' ) );`
+
+
+This will fetch the list of posts that are checked as Featured.
+
+**Want to see how this can be used in a Page Template?**
+[Click this link to see an example](https://gist.github.com/ernilambar/ad31b89b459e954fc950)
+
+
+== Installation ==
+
+= Using The WordPress Dashboard =
+
+1. Navigate to the 'Add New' Plugin Dashboard
+1. Select 'ns-featured-posts.zip' from your computer
+1. Upload
+1. Activate the plugin on the WordPress Plugin Dashboard
+1. Place the 'NS Featured Posts Widget' into a Widget area through the 'Appearance -> Widgets' menu in WordPress.
+
+= Using FTP =
+
+1. Extract 'ns-featured-posts.zip' to your computer
+1. Upload the 'ns-featured-posts' directory to your 'wp-content/plugins' directory
+1. Activate the plugin on the WordPress Plugins dashboard
+1. Place the 'NS Featured Posts Widget' into a Widget area through the 'Appearance -> Widgets' menu in WordPress.
+
+== Frequently Asked Questions ==
+
+= Does this support custom post types? =
+
+Yes. It supports custom post types also. From the Settings page( Settings -> NS Featured Posts), you can enable/disable custom post types for featured.
+
+== Screenshots ==
+
+1. Admin Settings page
+2. Example of featured in Post listing
+
+== Changelog ==
+
+= 3.0.0 - 29 Jul 2024 =
+* Requirement: PHP 7.2; WP 6.0
+* Major code refactoring
+* Update dependencies
+
+= 2.0.13 - 17 May 2024 =
+* Fix PHP 8.3 notice
+
+= 2.0.12 - 16 May 2024 =
+* Add blueprint
+
+= 2.0.11 - 15 May 2024 =
+* Fix URLs
+
+= 2.0.10 - 23 May 2023 =
+* Update packages
+
+= 2.0.9 - 4 Feb 2023 =
+* Fix PHP 8 notices
+
+= 2.0.8 - 17 Oct 2022 =
+* Fix PHP notice on the plugins page
+
+= 2.0.7 - 11 Oct 2022 =
+* Minor bug fixes
+
+= 2.0.6 - 4 Jul 2022 =
+* Minor bug fixes
+
+= 2.0.5 - 24 Jun 2022 =
+* Minor bug fixes
+
+= 2.0.4 - 9 Jan 2022 =
+* Add order options in widget
+* Minor bug fixes
+
+= 2.0.3 - 20 Jul 2021 =
+* Compatibility with WP 5.8
+* Minor bug fixes
+
+= 2.0.2 =
+* Minor bug fixes
+
+= 2.0.1 =
+* Fix bug of cpt
+
+= 2.0.0 =
+* Major code refactoring
+* Add radio mode
+* Add max posts option
+* Minor bug fixes
+
+= 1.4.1 =
+* Fix links
+
+= 1.4.0 =
+* Fix: Allow Editor to toggle checkbox
+* Compatibility with WP 4.6
+* Fix: Minor Bug fixes
+
+= 1.3 =
+* Fix: Minor Bug fixes
+
+= 1.2 =
+* Fix: Minor Bug fixes
+
+= 1.1 =
+* New: Metabox added in edit screen to enable/disable featured
+* Fix: Minor Bug fixes
+* Compatibility: Compatibility check with WP 4.2
+
+= 1.0.2 =
+* Bug fixes
+
+= 1.0.1 =
+* Add Featured Posts Widget
+* Bug fixes
+
+= 1.0.0 =
+* Initial release
+
+== Upgrade Notice ==
+NS Featured Posts