From c9aedf4ad5d8eb33b47d7d57e50ed643ee1e2435 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 23 Nov 2019 14:05:35 -0800 Subject: [PATCH] Bump WP compatibility --- README.md | 2 +- languages/view-all-posts-pages.pot | 46 ++-- package-lock.json | 401 +++++++++++++++++++++++++++++ readme.txt | 2 +- view-all-posts-pages.php | 11 +- 5 files changed, 433 insertions(+), 29 deletions(-) create mode 100644 package-lock.json diff --git a/README.md b/README.md index 7970ef0..5e9a272 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ **Donate link:** http://www.thinkoomph.com/plugins-modules/view-all-posts-pages/ **Tags:** view all, pages, paged, paged post, multipage, single view, single page, wp_link_pages, nextpage, next page, quicktag **Requires at least:** 3.2.1 -**Tested up to:** 5.2 +**Tested up to:** 5.3 **Stable tag:** 0.9.3 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html diff --git a/languages/view-all-posts-pages.pot b/languages/view-all-posts-pages.pot index e36cebb..0a05829 100644 --- a/languages/view-all-posts-pages.pot +++ b/languages/view-all-posts-pages.pot @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: View All Posts Pages 0.9.3\n" "Report-Msgid-Bugs-To: " "https://wordpress.org/support/plugin/view-all-posts-pages\n" -"POT-Creation-Date: 2019-05-12 18:33:30+00:00\n" +"POT-Creation-Date: 2019-11-23 22:03:53+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,99 +29,99 @@ msgstr "" msgid "View All" msgstr "" -#: view-all-posts-pages.php:464 view-all-posts-pages.php:495 +#: view-all-posts-pages.php:467 view-all-posts-pages.php:498 #. translators: 1: Plugin name. #. translators: 1: WordPress function name. msgid "%s Options" msgstr "" -#: view-all-posts-pages.php:499 +#: view-all-posts-pages.php:502 msgid "" "A \"view all\" link can be appended to WordPress' standard page navigation " "using the options below." msgstr "" -#: view-all-posts-pages.php:503 +#: view-all-posts-pages.php:506 msgid "Automatically append link to post's page navigation?" msgstr "" -#: view-all-posts-pages.php:505 view-all-posts-pages.php:548 +#: view-all-posts-pages.php:508 view-all-posts-pages.php:551 msgid "Yes" msgstr "" -#: view-all-posts-pages.php:506 view-all-posts-pages.php:549 +#: view-all-posts-pages.php:509 view-all-posts-pages.php:552 msgid "No" msgstr "" -#: view-all-posts-pages.php:510 view-all-posts-pages.php:576 +#: view-all-posts-pages.php:513 view-all-posts-pages.php:579 msgid "Link text:" msgstr "" -#: view-all-posts-pages.php:516 view-all-posts-pages.php:582 +#: view-all-posts-pages.php:519 view-all-posts-pages.php:585 msgid "Link's CSS class(es):" msgstr "" -#: view-all-posts-pages.php:520 view-all-posts-pages.php:586 +#: view-all-posts-pages.php:523 view-all-posts-pages.php:589 msgid "" "Be aware that Internet Explorer will only interpret the first two CSS " "classes." msgstr "" -#: view-all-posts-pages.php:524 view-all-posts-pages.php:561 +#: view-all-posts-pages.php:527 view-all-posts-pages.php:564 msgid "Display automatically on:" msgstr "" -#: view-all-posts-pages.php:540 +#: view-all-posts-pages.php:543 msgid "Standalone Link Options" msgstr "" -#: view-all-posts-pages.php:542 +#: view-all-posts-pages.php:545 msgid "" "In addition to appending the \"view all\" link to WordPress' standard " "navigation, link(s) can be added above and below post content." msgstr "" -#: view-all-posts-pages.php:546 +#: view-all-posts-pages.php:549 msgid "Automatically add links based on settings below?" msgstr "" -#: view-all-posts-pages.php:553 +#: view-all-posts-pages.php:556 msgid "Automatically place link:" msgstr "" -#: view-all-posts-pages.php:555 +#: view-all-posts-pages.php:558 msgid "Above content" msgstr "" -#: view-all-posts-pages.php:556 +#: view-all-posts-pages.php:559 msgid "Below content" msgstr "" -#: view-all-posts-pages.php:557 +#: view-all-posts-pages.php:560 msgid "Above and below content" msgstr "" -#: view-all-posts-pages.php:590 +#: view-all-posts-pages.php:593 msgid "Link's priority:" msgstr "" -#: view-all-posts-pages.php:594 +#: view-all-posts-pages.php:597 msgid "" "Priority determines when the link is added to a post's content. You can use " "the above setting to modulate the link's placement." msgstr "" -#: view-all-posts-pages.php:595 +#: view-all-posts-pages.php:598 msgid "" "The default value is <strong>10</strong>. Lower values mean the link will " "be added earlier, while higher values will add the link later." msgstr "" -#: view-all-posts-pages.php:739 +#: view-all-posts-pages.php:742 msgid "View All Post's Pages" msgstr "" -#: view-all-posts-pages.php:744 +#: view-all-posts-pages.php:747 #. translators: 1: Permalinks settings page URL. msgid "" "You must refresh your site's permalinks before <em>View All Post's " @@ -130,7 +130,7 @@ msgid "" "Changes</em></strong> button at the bottom of the screen." msgstr "" -#: view-all-posts-pages.php:756 +#: view-all-posts-pages.php:759 #. translators: 1: URL to dismiss admin notice. msgid "When finished, click <a href=\"%s\">here</a> to hide this message." msgstr "" diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..c91cd66 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,401 @@ +{ + "name": "view-all-posts-pages", + "version": "0.1.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "argparse": { + "version": "0.1.16", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-0.1.16.tgz", + "integrity": "sha1-z9AeD7uj1srtBJ+9dY1A9lGW9Xw=", + "dev": true, + "requires": { + "underscore": "~1.7.0", + "underscore.string": "~2.4.0" + }, + "dependencies": { + "underscore.string": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz", + "integrity": "sha1-jN2PusTi0uoefi6Al8QvRCKA+Fs=", + "dev": true + } + } + }, + "async": { + "version": "0.1.22", + "resolved": "https://registry.npmjs.org/async/-/async-0.1.22.tgz", + "integrity": "sha1-D8GqoIig4+8Ovi2IMbqw3PiEUGE=", + "dev": true + }, + "coffee-script": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.3.3.tgz", + "integrity": "sha1-FQ1rTLUiiUNp7+1qIQHCC8f0pPQ=", + "dev": true + }, + "colors": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz", + "integrity": "sha1-JCP+ZnisDF2uiFLl0OW+CMmXq8w=", + "dev": true + }, + "dateformat": { + "version": "1.0.2-1.2.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.2-1.2.3.tgz", + "integrity": "sha1-sCIMAt6YYXQztyhRz0fePfLNvuk=", + "dev": true + }, + "encoding": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", + "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", + "dev": true, + "requires": { + "iconv-lite": "~0.4.13" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + } + } + }, + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=", + "dev": true + }, + "eventemitter2": { + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz", + "integrity": "sha1-j2G3XN4BKy6esoTUVFWDtWQ7Yas=", + "dev": true + }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true + }, + "findup-sync": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.1.3.tgz", + "integrity": "sha1-fz56l7gjksZTvwZYm9hRkOk8NoM=", + "dev": true, + "requires": { + "glob": "~3.2.9", + "lodash": "~2.4.1" + }, + "dependencies": { + "glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz", + "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=", + "dev": true, + "requires": { + "inherits": "2", + "minimatch": "0.3" + } + }, + "lodash": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", + "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", + "dev": true + }, + "minimatch": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz", + "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", + "dev": true, + "requires": { + "lru-cache": "2", + "sigmund": "~1.0.0" + } + } + } + }, + "getobject": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/getobject/-/getobject-0.1.0.tgz", + "integrity": "sha1-BHpEl4n6Fg0Bj1SG7ZEyC27HiFw=", + "dev": true + }, + "gettext-parser": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/gettext-parser/-/gettext-parser-1.1.2.tgz", + "integrity": "sha1-zw8MnJCJrtsO5RSZKRg+ncQ1hKc=", + "dev": true, + "requires": { + "encoding": "^0.1.11" + } + }, + "glob": { + "version": "3.1.21", + "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz", + "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=", + "dev": true, + "requires": { + "graceful-fs": "~1.2.0", + "inherits": "1", + "minimatch": "~0.2.11" + }, + "dependencies": { + "inherits": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz", + "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=", + "dev": true + } + } + }, + "graceful-fs": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz", + "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=", + "dev": true + }, + "grunt": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/grunt/-/grunt-0.4.5.tgz", + "integrity": "sha1-VpN81RlDJK3/bSB2MYMqnWuk5/A=", + "dev": true, + "requires": { + "async": "~0.1.22", + "coffee-script": "~1.3.3", + "colors": "~0.6.2", + "dateformat": "1.0.2-1.2.3", + "eventemitter2": "~0.4.13", + "exit": "~0.1.1", + "findup-sync": "~0.1.2", + "getobject": "~0.1.0", + "glob": "~3.1.21", + "grunt-legacy-log": "~0.1.0", + "grunt-legacy-util": "~0.2.0", + "hooker": "~0.2.3", + "iconv-lite": "~0.2.11", + "js-yaml": "~2.0.5", + "lodash": "~0.9.2", + "minimatch": "~0.2.12", + "nopt": "~1.0.10", + "rimraf": "~2.2.8", + "underscore.string": "~2.2.1", + "which": "~1.0.5" + } + }, + "grunt-legacy-log": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-0.1.3.tgz", + "integrity": "sha1-7ClCboAwIa9ZAp+H0vnNczWgVTE=", + "dev": true, + "requires": { + "colors": "~0.6.2", + "grunt-legacy-log-utils": "~0.1.1", + "hooker": "~0.2.3", + "lodash": "~2.4.1", + "underscore.string": "~2.3.3" + }, + "dependencies": { + "lodash": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", + "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", + "dev": true + }, + "underscore.string": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz", + "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=", + "dev": true + } + } + }, + "grunt-legacy-log-utils": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-0.1.1.tgz", + "integrity": "sha1-wHBrndkGThFvNvI/5OawSGcsD34=", + "dev": true, + "requires": { + "colors": "~0.6.2", + "lodash": "~2.4.1", + "underscore.string": "~2.3.3" + }, + "dependencies": { + "lodash": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", + "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", + "dev": true + }, + "underscore.string": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz", + "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=", + "dev": true + } + } + }, + "grunt-legacy-util": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-0.2.0.tgz", + "integrity": "sha1-kzJIhNv343qf98Am3/RR2UqeVUs=", + "dev": true, + "requires": { + "async": "~0.1.22", + "exit": "~0.1.1", + "getobject": "~0.1.0", + "hooker": "~0.2.3", + "lodash": "~0.9.2", + "underscore.string": "~2.2.1", + "which": "~1.0.5" + } + }, + "grunt-wp-i18n": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/grunt-wp-i18n/-/grunt-wp-i18n-0.5.4.tgz", + "integrity": "sha1-hynlrU9LIxJpch8xcWVNLGKVVJI=", + "dev": true, + "requires": { + "async": "~0.9.0", + "gettext-parser": "~1.1.0", + "grunt": "~0.4.5", + "underscore": "~1.8.2", + "underscore.string": "~3.0.3" + }, + "dependencies": { + "async": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", + "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=", + "dev": true + }, + "underscore": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", + "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=", + "dev": true + }, + "underscore.string": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.0.3.tgz", + "integrity": "sha1-Rhe4waJQz25QZPu7Nj0PqWzxRVI=", + "dev": true + } + } + }, + "grunt-wp-readme-to-markdown": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/grunt-wp-readme-to-markdown/-/grunt-wp-readme-to-markdown-1.0.0.tgz", + "integrity": "sha1-dJ/9gDtYTVC9ZOc6ehqRhz6djPs=", + "dev": true + }, + "hooker": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/hooker/-/hooker-0.2.3.tgz", + "integrity": "sha1-uDT3I8xKJCqmWWNFnfbZhMXT2Vk=", + "dev": true + }, + "iconv-lite": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz", + "integrity": "sha1-HOYKOleGSiktEyH/RgnKS7llrcg=", + "dev": true + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-yaml": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-2.0.5.tgz", + "integrity": "sha1-olrmUJmZ6X3yeMZxnaEb0Gh3Q6g=", + "dev": true, + "requires": { + "argparse": "~ 0.1.11", + "esprima": "~ 1.0.2" + } + }, + "lodash": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-0.9.2.tgz", + "integrity": "sha1-jzSZxSRdNG1oLlsNO0B2fgnxqSw=", + "dev": true + }, + "lru-cache": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", + "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", + "dev": true + }, + "minimatch": { + "version": "0.2.14", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", + "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", + "dev": true, + "requires": { + "lru-cache": "2", + "sigmund": "~1.0.0" + } + }, + "nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", + "dev": true, + "requires": { + "abbrev": "1" + } + }, + "rimraf": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", + "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=", + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "sigmund": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", + "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=", + "dev": true + }, + "underscore": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", + "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=", + "dev": true + }, + "underscore.string": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.2.1.tgz", + "integrity": "sha1-18D6KvXVoaZ/QlPa7pgTLnM/Dxk=", + "dev": true + }, + "which": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/which/-/which-1.0.9.tgz", + "integrity": "sha1-RgwdoPgQED0DIam2M6+eV15kSG8=", + "dev": true + } + } +} diff --git a/readme.txt b/readme.txt index c74250d..42399c1 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: ethitter, thinkoomph Donate link: http://www.thinkoomph.com/plugins-modules/view-all-posts-pages/ Tags: view all, pages, paged, paged post, multipage, single view, single page, wp_link_pages, nextpage, next page, quicktag Requires at least: 3.2.1 -Tested up to: 5.2 +Tested up to: 5.3 Stable tag: 0.9.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/view-all-posts-pages.php b/view-all-posts-pages.php index bb66452..e7386e2 100755 --- a/view-all-posts-pages.php +++ b/view-all-posts-pages.php @@ -270,10 +270,12 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa $post->post_content = str_replace( "<!--nextpage-->\n", "\n", $post->post_content ); $post->post_content = str_replace( '<!--nextpage-->', ' ', $post->post_content ); - $pages = array( $post->post_content ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited + // phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited + $pages = array( $post->post_content ); - $more = 1; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited - $multipage = 0; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited + $more = 1; + $multipage = 0; + // phpcs:enable WordPress.WP.GlobalVariablesOverride.Prohibited } } @@ -320,7 +322,8 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa // Set global $more to false so that wp_link_pages outputs links for all pages when viewing full post page. if ( $this->is_view_all() ) { - $GLOBALS['more'] = false; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited + // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited + $GLOBALS['more'] = false; } // Process link text, respecting pagelink parameter. -- GitLab