Adds a settings page, available to those with the manage_options capability, with the following options:
Change the default pymsrc URL. [PR #45]() for issue #8.
Override block and shortcode pymsrc URLs with the default pymsrc URL. [PR #45]() for issue #8.
Through the settings page, you can now serve pym.js using your newsroom's CDN or NPR's CDN! [PR #45]() for issue #31.
Adds an informational page, available to all who can make posts, that lists the plugin's default source URL for Pym.js. This is to make the process of building new interactives easier.
Adds "Requires PHP: 5.3" metadata to the plugin's readme.txt, since we're now using PHP namespaces for some code.
Adds documentation for how to test the plugin:
tests to run before enabling the "override pymsrc" option in production
tests to run for site compatibility with Gutenberg
The source URL for pymjs, known as the pymsrc URL, is now passed through wp_http_validate_url. [PR #45]() for issue #8.
The source URL for pym.js is no longer output by the_content(), instead being output during wp_footer by an action dedicated to the task. If different shortcodes and/or blocks on the page specify different source URLs for Pym.js, all are output (after removing duplicates), but a message is logged in the browser console. If WP_DEBUG is set, this message is also logged to the server log, with the post ID specified. PR #34 for issues #33 and #35. See https://github.com/INN/pym-shortcode/tree/master/docs#ive-set-a-different-pymsrc-option-but-now-im-seeing-a-message-in-the-console
Changes
The next release of the plugin will be 1.3.2.1.
manage_options
capability, with the following options:Pym.js
. This is to make the process of building new interactives easier.readme.txt
, since we're now using PHP namespaces for some code.pymjs
, known as the pymsrc URL, is now passed through wp_http_validate_url. [PR #45]() for issue #8.pym.js
is no longer output bythe_content()
, instead being output duringwp_footer
by an action dedicated to the task. If different shortcodes and/or blocks on the page specify different source URLs for Pym.js, all are output (after removing duplicates), but a message is logged in the browser console. IfWP_DEBUG
is set, this message is also logged to the server log, with the post ID specified. PR #34 for issues #33 and #35. See https://github.com/INN/pym-shortcode/tree/master/docs#ive-set-a-different-pymsrc-option-but-now-im-seeing-a-message-in-the-consoledocs/updating-pym.md
becomesdocs/maintainer-notes.md
To do: