Commit graph

93 commits

Author SHA1 Message Date
eb34f30880 fix: correct relative filepaths 2021-04-14 22:52:56 +01:00
b824a44541 style: rename production flag variable
Renames the current production flag variable to be shorter,
non-Hungarian (presaging changes to come in #35) and not specifically
CSS_-related.

See #80
2021-04-14 22:47:44 +01:00
e76a4e0bb1 fix: add separate prod/dev cache-busters 2021-04-14 22:39:16 +01:00
7ddac313bd Merge branch 'main' into svn-update 2021-04-10 20:02:10 +01:00
pewgeuges
258e3c6070 Unreleased bugfix v2.6.1 with Stable Tag 2.6.0.
Needed to share in a Forum topic where the problem came up incidentally.
Must also be shared in the Forum topic of the related bug report.
This also contains an escapement reversal (without known incidence on the plugin’s behavior).

= 2.6.1 =
- Bugfix: Tooltips: Styling: Font color: set to black for maximum contrast with respect to white default background, thanks to 4msc bug report.
- Bugfix: Tooltips: Styling: Background color: set default value back to white because empty doesn’t work out as expected.

= Branches =
Delete the staging branch.
Rationale:

- It is outdated an cannot be used for staging any more.
- It had been made improperly on its own instead of copying from trunk/.
- It is undue for the following reasons:
  - Staging release processes here is too dangerous.
  - Staging release processes here is too little effective.

Staging must not take place in this repository but in another SVN instance.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2504324 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-27 06:10:08 +00:00
pewgeuges
0dc4c08dd8 Unreleased bugfix v2.5.13 with Stable Tag 2.5.10.
= 2.5.13 =
- Bugfix: Dashboard: Backlink symbol: debug select box by reverting identity check to equality check, thanks to @lolzim bug report.
- Bugfix: Footnote delimiter short codes: debug closing pointy brackets in the Block Editor by accounting for unbalanced HTML escapement.
- Update: Dashboard: General settings: Footnote start and end short codes: update information about short codes using pointy brackets.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2502882 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-24 21:19:07 +00:00
pewgeuges
c93e6ff28d 2.5.11d7 with the new settings.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2500244 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-20 20:48:54 +00:00
pewgeuges
7aa9d8803f Urgent bugfix development 2.5.11d5 with ST 2.5.10.
On top of 2.6.0d7.
Debugs Footnotes for all input field values with footnotes coming in from field label.
Preparing unreleased tagged v2.5.11 in response to Forum support request.
Accessibility fixes and AMP compat enhancements not fully debugged yet, draft only.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2499807 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-19 23:58:23 +00:00
pewgeuges
ccb73fd421 Accessibility added, v2.6.0d6 (S.T. 2.5.10).
= Reference container semantics for assistive technology =
- Table header elements with row scope in the first column.
- Table caption invisible to sighted users but required for screen readers.
= Referrer accessibility =
- jQuery referrers are accessible but don’t show the tooltips on focus.
- AMP compatible tooltips show up on focus on navigatable referrers.
- Alternative tooltips now accessible on focus on now navigatable referrers.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2498648 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-18 10:53:57 +00:00
0a34e96450
Add release helper script (#64)
This commit adds a release helper script, amongst other workflow improvements.

See `README.md` for instructions, and `_tools/release.sh` for the script itself.

This script:

1. sanity-checks the various version tags;
2. triggers a Plugin build;
3. flags the new version as pre-release;
4. tags the version in Git;
5. creates a local working copy of the SVN repo;
6. copies the new release to the local `trunk/` (whilst keeping the ‘Stable Tag’ field in `readme.txt` pointing to the previous stable version);
7. copies the commit message from the changelog in `readme.txt`; and
8. (if a flag is set) commits the changes to the remote `trunk/`.

Pushing out a new release must still be done manually, once `trunk/` is tested and working. To do so, check out a local copy of `trunk/` and:

1. update the ‘Stable Tag’ field in `trunk/readme.txt` to the new version;
2. update the ‘Version’ field in the comment header of `trunk/footnotes.php` to the new version;
3. remove the ‘p’ from the end of the ‘version’ tag in the `getInfo()` function at the bottom of `js/wsiwyg-editor.js`; 
4. copy a new tag for the release from `trunk/` (`svn cp trunk tags/<version number>`); and
5. commit your changes (`svn ci -m "Release version <version number>"`).

The WP Plugin Directory will automatically parse the ‘Stable Tag’ field in `trunk/readme.txt`, and inform users that a new version is available.

At various stages user input is required to validate information. This is not ready for automation with GitHub Actions, but is a useful step on the way — see [this piece](https://blog.danslimmon.com/2019/07/15/do-nothing-scripting-the-key-to-gradual-automation/) for more info.

Unless a `-c` flag is passed (e.g., by running `composer run release:commit`) no changes will take place on the remote SVN repo. If you want to test this out on a branch other than `main`, uncomment lines 31 & 52 of the script.

Version checking enforces the versioning rules stated [here](https://github.com/markcheret/footnotes/wiki/Versioning).

**NB: I have not tested the `-c` mode yet, as I wanted people will more familiarity with the SVN to have a look at it before I risked making any changes and blowing everything up.**

Co-authored-by: pewgeuges <73141620+pewgeuges@users.noreply.github.com>
2021-03-17 17:46:21 +00:00
pewgeuges
f089e0446a Development 2.6.0d2 finished so far.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2497412 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-16 22:57:27 +00:00
pewgeuges
c5a9af037a Development preview 2.6.0d1 with AMP compat at work.
Stable Tag is 2.5.10. v2.6.0d0 does already exist on SVN (2456650 2021-01-14).
Tooltip timing settings are not yet usable in AMP mode.
Tooltip transitions don’t work now, only delays, need to debug.
It’s late and we have a deadline, so this is committed as a preview.
Thanks for looking into it.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2497297 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-16 19:41:08 +00:00
pewgeuges
67993df90f Sync trunk/ with staging branch. **Stable Tag 2.5.10**
branches/staging/ is most up-to-date: 2.5.11d2.
Per WordPress guideline, “trunk/ should contain the latest version of your code, even if that version is a beta.”
See https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/#use-the-trunk-folder-for-code
= Moved files =
Two documentation files are moved from development/ to the root folder:
- customized-template-stack.txt
- customized-documentation-schema.txt
= Deleted files and folders =
Part of the tooling and the duplicate license were mistakenly included and are now removed from distribution:
- development/csscat.sh
- contrib/pre-commit
- composer.json
- composer.lock
- LICENSE
The comments shall be updated accordingly.
development/csscat.sh is now _tools/build-stylesheets.sh, available in Footnotes’ GitHub repo.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2495062 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-13 22:21:26 +00:00
pewgeuges
46fc9a7c5f Adapt after the 2.5.9d1 accident. 2021-03-05 04:30:50 +01:00
pewgeuges
daf0a8612f WordPress Coding Standards compliance update. Stable Tag 2.5.10. Package version: 2.5.11d0.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2486043 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-03 18:58:03 +00:00
pewgeuges
dfcbdc6adc Undo last two commits affecting trunk/ but not the Stable Tag.
= Stable Tag value =
2.5.10 (unchanged)
= Commits undone =
- 2484038 (2021-03-02 05:29:18 +0000 (Tue, 02 Mar 2021)) committer: pewgeuges
-2484015 (2021-03-02 04:22:20 +0000 (Tue, 02 Mar 2021)) committer: pewgeuges
= Rationale =
By renaming a folder (and 3 out of 4 included files), the WordPress Coding Standards compliance upgrade (see changeset 2484015) has broken the traceability of the changes made to the following files:
- footnotes/trunk/class/dashboard/init.php
- footnotes/trunk/class/dashboard/layout.php
- footnotes/trunk/class/dashboard/subpage-diagnostics.php
- footnotes/trunk/class/dashboard/subpage-main.php

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2485882 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-03 15:15:55 +00:00
pewgeuges
c63d3f629f Update to standardised codebase as on GitHub origin/main/, 2.5.8. Stable Tag value set to 2.5.10 since it’s parsed to determine current release.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2484015 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-02 04:22:20 +00:00
pewgeuges
caf3e1136c Convert EOL from CRLF to LF.
to make footnotes/trunk/ diffable against the standardised codebase on GitHub markcheret/footnotes/.
Stable Tag remains 2.5.10.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2483994 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-02 03:09:34 +00:00
pewgeuges
ba9d9bc535 Revert to 2.5.8 in the new Stable Tag 2.5.10.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2483464 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-01 11:09:29 +00:00
8a859b61f7 Re-standardise codebase to WP Coding Standards (this time without the line ending changes)
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2483354 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-01 07:57:12 +00:00
05d316ae15 Revert standardise codebase to WP Coding Standards
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2483350 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-01 07:54:03 +00:00
6a5fcedac3 Standardise codebase to WP Coding Standards
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2483336 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-03-01 07:37:59 +00:00
25c3f2f12e Replace output escape and input sanitization functions with linter supression messages 2021-02-27 08:49:08 +00:00
pewgeuges
bf80a52c07 Edit file level docblocks. 2021-02-24 23:53:22 +01:00
pewgeuges
3540815ba7 Small edits. 2021-02-24 17:11:41 +01:00
pewgeuges
c1e5e0b33a Update contribution URL class/init.php
The historic repo where @felipelavinz contributed has recently been moved.
As a consequence the commit’s URL needs to be updated.
But the original URL is maintained below under the commit date.
2021-02-24 16:28:34 +01:00
pewgeuges
1c2afab4b3
Change variable names conventional class/init.php
Name variables in an intuitive manner according to coding conventions.
2021-02-23 20:56:06 +01:00
pewgeuges
63803e147b
Merge docblock restore attributions class/init.php
Merge deleted docblock attributions in remaining docblock.
2021-02-23 20:13:38 +01:00
526b5d096f Minor whitespace, commenting tweaks 2021-02-23 17:59:52 +00:00
078781b000 Explictly pass false argument to wp_enqueue_script().
Not doing so will result in a `WordPress.WP.EnqueuedResourceParameters.NotInFooter` warning from PHPCS.
2021-02-23 17:15:58 +00:00
9a8e7c0851 Update codebase to be WP Coding Standard-compliant.
This is a squashed copy of `wp-coding-standard--rebase` to try and fix the line-ending
diff issue we're having.
2021-02-23 16:44:18 +00:00
9ee72568ef Append line endings 2021-02-23 16:00:59 +00:00
pewgeuges
65874f089b update 2.5.6d4 in case it is tested in the related forum topic.\nFull changelog:\n= 2.5.6 =\n- Bugfix: Reference container: optional alternative expanding and collapsing without jQuery for use with hard links, thanks to @hopper87it @pkverma99 issue reports.\n- Bugfix: Alternative tooltips: shrink width to short content.\n- Update: Documentation: slightly revise / update the plugin’s welcome page on WordPress.org.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2478015 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-20 03:50:52 +00:00
pewgeuges
67c1f443ad development update 2.5.6d2 to prepare the newly promised bugfix release adding a reference container template not using jQuery, plain JS instead.\nThe following is the changelog as drafted for this release: \n= 2.5.6 =\n- Bugfix: Reference container: optional alternative expanding and collapsing without jQuery for use with hard links, thanks to @hopper87it issue report.\n- Update: Documentation: slightly revise / update the plugin’s welcome page on WordPress.org.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2477898 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-19 19:42:45 +00:00
pewgeuges
7f5499723b traceability update 2.5.6d1 revert space indent to tab.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2477300 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-18 19:56:44 +00:00
pewgeuges
3a341d36b2 development update 2.5.5d0 to be shared on the forum
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2475227 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-16 02:23:40 +00:00
pewgeuges
b9476b682e traceability update 2.5.4d5
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2472973 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-11 10:34:35 +00:00
pewgeuges
0612b76412 traceability update 2.5.4d4
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2472020 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-09 23:33:29 +00:00
pewgeuges
4d884e22a0 traceability update 2.5.4d3
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2471020 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-08 18:04:15 +00:00
pewgeuges
cee486702c traceability update 2.5.4d2
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2469883 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-06 01:57:25 +00:00
pewgeuges
6706ba811e development version for urgent bugfix test in response to Forum (2.5.4d1)
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2466893 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-02-02 04:40:41 +00:00
pewgeuges
12a53754ab update for urgent bugfix upcoming 2.5.3
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2461253 b8457f37-d9ea-0310-8a92-e5e31aec5664
2021-01-23 00:25:35 +00:00
pewgeuges
391cce446a development 2.2.0d8 with update readme “Tested up to: 5.6”. Please test UI redesign prior to adding the missing settings
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2438063 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-12 21:07:24 +00:00
pewgeuges
8e02b48df3 development 2.2.0d0 for Forum
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2435618 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-09 15:12:37 +00:00
pewgeuges
9dba60cd48 prerelease 2.1.4: this is 2.1.4 just without the tag 2.1.4; 2.2.0 will need localization, yet that implies a lot of extra changes and work. The overdue bugfixes need to be released today. Scheduled for this evening if no problems.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2432631 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-06 16:30:14 +00:00
pewgeuges
ec116d10a2 development 2.2.0d2 tooltip durations settings
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2432531 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-06 12:46:45 +00:00
pewgeuges
3e8d312969 development 2.2.0d0 merged with 2.1.4d series. Scroll offset and duration settings
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2432050 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-05 04:48:09 +00:00
pewgeuges
c432dde37b development 2.1.4d10 with 3 new stylesheets to fix layout in page, derived from Hello Elementor under GPLv3. Need to post on forum.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2431872 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-04 22:51:29 +00:00
pewgeuges
75558d98ac development update 2.1.4d6 for testing and sharing
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2429410 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-12-01 12:59:28 +00:00
pewgeuges
56a9c0d2e1 development update 2.1.4d5 for assessment and sharing
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2428366 b8457f37-d9ea-0310-8a92-e5e31aec5664
2020-11-30 06:17:43 +00:00