-
Notifications
You must be signed in to change notification settings - Fork 6
Update code to comply with WP Coding Standards (rebased) #32
Conversation
… parameter comments, etc.
Reordered entries in Contributors field of readme.txt in sync with project. Correct my typo: missing comma.
Change misleading variable names C_BOOL_… to C_STR_… — The type in the variable name was useful to show the intention.
Change misleading variable names C_BOOL_… to C_STR_… — The type in the variable name was useful to show the intention.
Change misleading variable names C_BOOL_… to C_STR_… — The type in the variable name was useful to show the intention.
Change misleading variable names C_BOOL_… to C_STR_… — The type in the variable name was useful to show the intention.
Deferring jQuery Tools to the footer breaks jQuery tooltip display. Fix docblock. (Trailing comma after last argument can stay.)
class/init.php
Outdated
*/ | ||
wp_enqueue_script( | ||
'mci-footnotes-jquery-tools', | ||
plugins_url( 'footnotes/js/jquery.tools.min.js' ), | ||
array(), | ||
'1.2.7.redacted.2' | ||
'1.2.7.redacted.2', | ||
true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be false
, fixed by @pewgeuges in 9226a40
These are class variables because they’re used both in search() and in reference_container(), hence the TODO item has been replaced with an explanatory comment. The deleted attribution is now restored. The version number for the variables is corrected (2.3.0, not 2.0.0). Docblock heading corrected to “The slug and identifier separator.”
Same issues as in e3c865b
Same issues as in e3c865b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only a test comment. Thanks for your work
another test |
You're right, the indentation wasn't the issue — it was the newlines. The files in
I assume this comes from copy-pasting code into the Web tool — I didn't notice it until now because all my earlier PRs (e.g., adding the Solution: I'll checkout |
Do you need to rebase again? |
It's working locally now:
I think the GitHub one might have some caching so it might take a while to update. |
I have only been dealing with PHP files in this branch so far, so the non-PHP files still lack line endings. This commit adds line endings to only those files, which should ensure that they are in line with the files on `main` and do not appear in this PR's diff view.
Not a caching issue; I think it's still diffing this branch with the version of Closing this PR |
Updates the codebase to ensure compliance with the WP Coding Standards.
Also Composerises the project to allow for the installation of a pre-commit PHP_CodeSniffer hook (and other hooks later on).
Note 1: because pretty much every line of every file is being changed (even if just to change indentation format), the diff tool is not particularly useful on this PR.
Note 2: This branch's commit history will be squashed on merge, so do not make any commits to this branch that you're going to want to remain in the project history. Keep it scoped to WP Coding Standards compliance only.
This is a duplicate of #23, except rebased to separate commit 3a44a19 into two different commits (27abf83 and b349544), ensuring the files in
class/dashboard/*
are properly tracked as having been renamed toclass/layout/*
, rather than just deleted.Replace #23
Close #8
Close #10
Close #11