Permalink
Commits on Jan 9, 2017
  1. Merge pull request #770 from WordPress-Coding-Standards/feature/issue…

    …-248-undefined-notices
    
    Fix some undefined index notices in the `WordPress.XSS.EscapeOutput` sniff.
    jrfnl committed on GitHub Jan 9, 2017
Commits on Jan 7, 2017
  1. I18n Sniff: Only recognize the space as a padding character when acco…

    …mpanied by a width specifier.
    
    * Includes additional unit test.
    * Includes detailed documentation of the regular expressions as they were getting quite hard to manage without.
    jrfnl committed Jan 7, 2017
  2. Fix unintended parse errors in test files.

    jrfnl committed Jan 7, 2017
  3. Merge pull request #736 from WordPress-Coding-Standards/feature/issue…

    …-300-fix-global-var-override-detection
    
    Fix a number of bugs in the global var override detection
    jrfnl committed on GitHub Jan 7, 2017
  4. Merge pull request #742 from WordPress-Coding-Standards/feature/issue…

    …-423-check-translator-comment
    
    Add checking for translators comments to the I18n sniff.
    jrfnl committed on GitHub Jan 7, 2017
Commits on Jan 5, 2017
  1. Fix unit tests failing on PHP nightly for the `WordPress.WP.I18n` sniff.

    This solves the following error:
    `An error occurred during processing; checking has been aborted. The error message was: "count(): Parameter must be an array or an object that implements Countable" at /home/travis/build/WordPress-Coding-Standards/WordPress-Coding-Standards/WordPress/Sniffs/WP/I18nSniff.php:233`
    
    `array_shift()` returns null if the array is empty or not an array which may have happened when less arguments where passed to the i18n function then expected.
    In that case `$tokens` will be null and start throwing the `countable` error for PHP nightly.
    jrfnl committed Jan 5, 2017
  2. Fix some undefined index notices in the `WordPress.XSS.EscapeOutput` …

    …sniff.
    
    These would be thrown when live coding/running the sniffs on code with parse errors.
    jrfnl committed Jan 5, 2017
Commits on Jan 3, 2017
  1. Fix issues detected by the new rules in the WPCS code base.

    jrfnl committed Jan 3, 2017