Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v 2.6.0 #581

Merged
merged 95 commits into from
May 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
f77d573
Add the pt_BR translate
Jul 16, 2015
d642f1e
Merge pull request #450 from elvishp2006/translate_pt_BR
jrfnl Jul 16, 2015
1ee8e59
Rename brazilian language files to plugin style naming
jrfnl Jul 16, 2015
10d5b46
Action links would not always be filtered.
jrfnl Aug 19, 2015
eb72e96
Merge pull request #459 from TGMPA/feature/better-filter-action-links
GaryJones Aug 19, 2015
9896b44
Bypass latest Theme Check update for add_submenu_page calls.
jrfnl Aug 19, 2015
5180eb5
Merge pull request #460 from TGMPA/feature/bypass-theme-check
GaryJones Aug 19, 2015
4ad6c5a
Add french language
hedii Aug 20, 2015
15843bc
Merge pull request #465 from hedii/feature/french-language
GaryJones Aug 20, 2015
2b63af5
Add russian language
vburlak Sep 1, 2015
48a7a49
Remove plugin header from main file to avoid confusing WP.
jrfnl Jan 4, 2016
97d8735
Update the .pot file.
jrfnl Jan 4, 2016
1ad7aed
Don't try and bulk-install plugins which are already installed.
jrfnl Jan 4, 2016
c981b5d
Updated the example file with examples for different include situations.
jrfnl Jan 4, 2016
8c173a0
Use a nonce for the notice dismissal.
jrfnl Jan 4, 2016
01349ec
Update travis script.
jrfnl Jan 4, 2016
5b057f5
Fix admin notice class.
jrfnl Jan 5, 2016
e86420e
Merge pull request #500 from TGMPA/feature/no-plugin-header
GaryJones Jan 5, 2016
7cf77a9
Merge pull request #501 from TGMPA/feature/update-pot-file
GaryJones Jan 5, 2016
edd294b
Merge pull request #502 from TGMPA/feature/update-travis-script
GaryJones Jan 5, 2016
4ed1824
Merge pull request #504 from TGMPA/feature/issue-496
GaryJones Jan 5, 2016
a91014c
Merge pull request #505 from TGMPA/feature/issue-487
GaryJones Jan 5, 2016
a6a0b3a
Merge pull request #509 from TGMPA/feature/issue-478-495-notice-class
GaryJones Jan 5, 2016
bf19622
Prevent updating plugins which are not installed.
jrfnl Jan 5, 2016
927e70c
Variable admin notices based on user level.
jrfnl Jan 5, 2016
01212ae
Merge pull request #503 from TGMPA/feature/issue-469
GaryJones Jan 5, 2016
735d71b
Merge pull request #508 from TGMPA/issue-442
GaryJones Jan 5, 2016
0e8e844
Merge pull request #507 from TGMPA/feature/issue-414
GaryJones Jan 6, 2016
245f144
Fix page title on single plugin update.
jrfnl Jan 7, 2016
0c74be3
Fix install/update notices on bulk install page.
jrfnl Jan 7, 2016
c8a5262
Merge pull request #511 from TGMPA/feature/install-page-notices
GaryJones Jan 7, 2016
90ffe25
Merge pull request #513 from TGMPA/feature/use-correct-phrase
GaryJones Jan 7, 2016
ddc1275
Prevent TGMPA notice showing on WP core update pages.
jrfnl Jan 7, 2016
88da3fb
Various minor fixes.
jrfnl Jan 8, 2016
961b761
Revert "Bypass latest Theme Check update for add_submenu_page calls."
jrfnl Jan 8, 2016
5dbb017
Merge pull request #514 from TGMPA/feature/various-minor-fixes
GaryJones Jan 8, 2016
393003f
Replace wrong use of _x() with __() and add translation comments
ramiy Jan 9, 2016
b9bd0d6
Merge similar strings: Return to the dashboard => Return to the Dashb…
ramiy Jan 9, 2016
e8d2d7b
Split string into two strings - same as the other strings with dashbo…
ramiy Jan 9, 2016
203cb43
Add context to '%1$s, %2$s' translation string
ramiy Jan 9, 2016
c7cb342
remove the wp_kses_post() function
ramiy Jan 9, 2016
be9364f
Add internal notes about the custom TGMPA generator.
jrfnl Jan 8, 2016
0193eae
Merge pull request #520 from TGMPA/feature/revert-themecheck-hack
GaryJones Jan 10, 2016
efc3e97
Merge pull request #522 from TGMPA/feature/add-notes-for-generator
GaryJones Jan 10, 2016
38a43f3
update russian translation files
vburlak Jan 11, 2016
36d39ce
Merge pull request #524 from vburlak/develop
jrfnl Jan 11, 2016
68b3a3c
German translation courtesy of Marciel Bartzik.
jrfnl Jan 22, 2016
5e31ddc
Merge pull request #528 from jrfnl/feature/german-translation
jrfnl Jan 23, 2016
48fdf58
Add loading of TGMPA native translation files.
jrfnl Jan 23, 2016
6c13739
Merge pull request #521 from TGMPA/feature/add-tgmpa-native-translations
GaryJones Jan 23, 2016
22564f5
Fix remove_filter extra params
PatelUtkarsh Jan 28, 2016
dea775b
Fix typo in dismissable admin notice nonce.
jrfnl Feb 11, 2016
86f1d73
Merge pull request #535 from TGMPA/feature/fix-issue-534
GaryJones Feb 11, 2016
86acb2b
Recommend the Custom TGMPA Generator as the preferred download method.
jrfnl Feb 12, 2016
36ccf53
Merge pull request #539 from TGMPA/feature/recommend-generator
GaryJones Feb 12, 2016
0073ebd
Initial Swedish translation
Mar 9, 2016
dee0715
Merge pull request #543 from lewisporter/develop
jrfnl Mar 9, 2016
171df55
Merge pull request #532 from PatelUtkarsh/531-remove-filter-fix
jrfnl Mar 27, 2016
8bbc111
Updated the example plugin.
jrfnl Apr 10, 2016
ffa0fc1
Added Dutch translations
geoclaps Apr 19, 2016
06a03ad
Merge pull request #512 from TGMPA/feature/no-notices-on-some-pages
GaryJones Apr 19, 2016
f642571
Merge pull request #557 from TGMPA/feature/555-update-example-plugin
GaryJones Apr 19, 2016
88e8b1b
Merge pull request #516 from ramiy/develop
GaryJones Apr 19, 2016
294647e
Merge pull request #561 from geoclaps/develop
jrfnl Apr 19, 2016
b1bcd8a
Fix @since tag of a filter.
jrfnl Mar 27, 2016
65d4f56
Add translator comments to all strings with variables.
jrfnl Apr 19, 2016
13b3c80
Merge pull request #562 from TGMPA/feature/minor-fix
GaryJones Apr 20, 2016
9c97e4f
Merge pull request #563 from TGMPA/feature/translator-comments
GaryJones Apr 20, 2016
993073b
Fix file names of the Dutch translations files.
jrfnl Apr 20, 2016
a0aa2aa
Remove inadvert double text string.
jrfnl Apr 20, 2016
2666280
Extracted a number of translations for TGMPA from GlotPress.
jrfnl Apr 21, 2016
53c3e3e
Update fr_FR translation
hedii Apr 21, 2016
2b678e8
Merge pull request #565 from hedii/feature/additional-translations
jrfnl Apr 21, 2016
5cc59e0
Updated the `en_GB` translation as per @GaryJones suggestion.
jrfnl Apr 21, 2016
39fda38
updated ru_RU translations
vburlak Apr 21, 2016
c946144
Merge pull request #566 from vburlak/feature/additional-translations
jrfnl Apr 21, 2016
789e0ae
added Czech localization
Apr 26, 2016
f0a55a7
Merge pull request #570 from vyskoczilova/feature/additional-translat…
jrfnl May 2, 2016
273e18c
Added Croatian translation
dingo-d May 2, 2016
1024d9b
Merge pull request #574 from dingo-d/feature/additional-translations
jrfnl May 2, 2016
ccb3304
Update pt_BR translation
elvishp2006 May 2, 2016
0ce7a84
Merge pull request #576 from elvishp2006/feature/additional-translations
jrfnl May 2, 2016
c352e3b
More comprehensive scrutinizer config.
jrfnl May 3, 2016
46b4485
Minor code adjustments based on Scrutinizer feedback.
jrfnl May 3, 2016
df4d43b
Merge pull request #571 from TGMPA/feature/scrutinizer-config
GaryJones May 3, 2016
3bfaeef
Add force deactivated plugins to the `recently_active` plugins list.
jrfnl May 7, 2016
c6de281
Merge pull request #577 from TGMPA/feature/recently-active
GaryJones May 7, 2016
dcadf78
Minor code-style tidying up.
jrfnl May 13, 2016
0cc1df2
Don't try to translate already translated strings.
jrfnl May 13, 2016
5620d5d
Fix text-domain for a string in the example file.
jrfnl May 13, 2016
fb101e4
Add missing `@since` tags.
jrfnl May 13, 2016
fb46927
Tidy up the po headers & move Croatian files to the languages directory.
jrfnl May 14, 2016
c2585ab
Merge pull request #564 from TGMPA/feature/additional-translations
GaryJones May 14, 2016
5225396
Updated changelog for v2.6.0, upped version nrs.
jrfnl May 15, 2016
6963a59
Merge pull request #461 from TGMPA/feature/changelog
GaryJones May 15, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 202 additions & 18 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,46 @@
tools:
php_sim: true
php_pdepend: true
php_analyzer: true
sensiolabs_security_checker: true

checks:
php:
useless_calls: true
unused_variables: true
unused_properties: true
unused_parameters: true
unused_methods: true
unreachable_code: true
too_many_arguments: true
no_unnecessary_if: true
no_unnecessary_final_modifier: true
no_empty_statements: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
avoid_useless_overridden_methods: true
use_self_instead_of_fqcn: true
uppercase_constants: true
single_namespace_per_use: false
simplify_boolean_return: true
return_doc_comment_if_not_inferrable: true
require_scope_for_properties: true
require_scope_for_methods: true
remove_extra_empty_lines: true
psr2_switch_declaration: true
psr2_class_declaration: true
properties_in_camelcaps: false
prefer_while_loop_over_for_loop: true
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
parameters_in_camelcaps: false
optional_parameters_at_the_end: true
no_short_method_names:
minimum: '3'
no_long_variable_names:
maximum: '25'
no_goto: true
no_underscore_prefix_in_properties: true
no_underscore_prefix_in_methods: true
no_trailing_whitespace: true
no_new_line_at_end_of_file: false
no_error_suppression: false
no_commented_out_code: true
newline_at_end_of_file: true
naming_conventions:
local_variable: '^[a-z][a-z_0-9]*$'
Expand All @@ -27,24 +54,181 @@ checks:
type_name: '^[A-Z][a-zA-Z0-9_]*$'
exception_name: '^[A-Z][a-zA-Z0-9_]*Exception$'
isser_method_name: '^(?:is|has|should|may|supports)'
more_specific_types_in_doc_comments: true
function_in_camel_caps: false
fix_line_ending: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
encourage_single_quotes: true
encourage_postdec_operator: true
classes_in_camel_caps: false
blank_line_after_namespace_declaration: true
avoid_todo_comments: true
avoid_perl_style_comments: true
avoid_multiple_statements_on_same_line: true
avoid_length_functions_in_loops: true
avoid_fixme_comments: true
avoid_closing_tag: true
avoid_aliased_php_functions: true
align_assignments: true
no_global_keyword: false
one_class_per_file: false
duplication: true
sql_injection_vulnerabilities: true
security_vulnerabilities: true
no_eval: true
switch_fallthrough_commented: true
phpunit_assertions: false
overriding_private_members: true
non_commented_empty_catch_block: true
no_short_variable_names:
minimum: '3'
no_short_method_names:
minimum: '3'
no_long_variable_names:
maximum: '30'
no_goto: true
avoid_usage_of_logical_operators: true
return_doc_comments: true
return_doc_comment_if_not_inferrable: true
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
more_specific_types_in_doc_comments: false
fix_doc_comments: true
verify_property_names: true
verify_argument_usable_as_reference: true
verify_access_scope_valid: true
variable_existence: true
use_statement_alias_conflict: true
symfony_request_injection: true
precedence_mistakes: true
precedence_in_conditions: true
parameter_non_unique: true
no_property_on_interface: true
no_non_implemented_abstract_methods: true
no_duplicate_arguments: true
missing_arguments: true
method_calls_on_non_object: true
instanceof_class_exists: true
foreach_usable_as_reference: true
foreach_traversable: true
encourage_shallow_comparison: true
closure_use_not_conflicting: true
closure_use_modifiable: true
catch_class_exists: true
avoid_entity_manager_injection: true
avoid_conflicting_incrementers: true
assignment_of_null_return: true
argument_type_checks: true
avoid_unnecessary_concatenation: true
deprecated_code_usage: true
side_effects_or_types: false
require_php_tag_first: true
php5_style_constructor: true
one_class_per_file: false
no_short_open_tag: true
no_global_keyword: true
no_exit: false
avoid_superglobals: false
avoid_duplicate_types: true
avoid_corrupting_byteorder_marks: true
no_debug_code: true
code_rating: true

tools:
sensiolabs_security_checker: true
coding_style:
php:
indentation:
general:
use_tabs: true
size: 4
switch:
indent_case: true
spaces:
before_parentheses:
function_declaration: false
closure_definition: false
function_call: false
if: true
for: true
while: true
switch: true
catch: true
array_initializer: false
around_operators:
assignment: true
logical: true
equality: true
relational: true
bitwise: true
additive: true
multiplicative: true
shift: true
unary_additive: false
concatenation: true
negation: true
before_left_brace:
class: true
function: true
if: true
else: true
for: true
while: true
do: true
switch: true
try: true
catch: true
finally: true
before_keywords:
else: true
while: true
catch: true
finally: true
within:
brackets: false
array_initializer: true
grouping: true
function_call: true
function_declaration: true
if: true
for: true
while: true
switch: true
catch: true
type_cast: false
ternary_operator:
before_condition: true
after_condition: true
before_alternative: true
after_alternative: true
in_short_version: true
other:
before_comma: false
after_comma: true
before_semicolon: false
after_semicolon: true
after_type_cast: true
braces:
classes_functions:
class: end-of-line
function: end-of-line
closure: end-of-line
if:
opening: end-of-line
always: true
else_on_new_line: false
for:
opening: end-of-line
always: true
while:
opening: end-of-line
always: true
do_while:
opening: end-of-line
always: true
while_on_new_line: false
switch:
opening: end-of-line
try:
opening: end-of-line
catch_on_new_line: false
finally_on_new_line: false
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower
46 changes: 31 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,55 @@ sudo: false
language: php

# Declare versions of PHP to use. Use one decimal max.
php:
- 5.2
- 5.6
- hhvm

# @link http://docs.travis-ci.com/user/build-configuration/
matrix:
allow_failures:
- php: hhvm
fast_finish: true

include:
# Current $required_php_version for WordPress: 5.2.4
# aliased to 5.2.17
- php: '5.2'
# aliased to a recent 5.4.x version
- php: '5.4'
# aliased to a recent 5.6.x version
- php: '5.6'
env: SNIFF=1
# aliased to a recent 7.x version
- php: '7.0'
# aliased to a recent hhvm version
- php: 'hhvm'

allow_failures:
- php: 'hhvm'

before_script:
- export PHPCS_DIR=/tmp/phpcs
- export WPCS_DIR=/tmp/wpcs
# Install CodeSniffer for WordPress Coding Standards checks.
# 2.3.1 breaks PHP 5.2 on Travis due to use of Phar class.
- git clone -b 2.3.0 --depth 1 https:/squizlabs/PHP_CodeSniffer.git $PHPCS_DIR
- if [[ "$SNIFF" == "1" ]]; then git clone -b master --depth 1 https:/squizlabs/PHP_CodeSniffer.git $PHPCS_DIR; fi
# Install WordPress Coding Standards.
- git clone -b master --depth 1 https:/WordPress-Coding-Standards/WordPress-Coding-Standards.git $WPCS_DIR
- if [[ "$SNIFF" == "1" ]]; then git clone -b master --depth 1 https:/WordPress-Coding-Standards/WordPress-Coding-Standards.git $WPCS_DIR; fi
# Hop into CodeSniffer directory.
- if [[ "$SNIFF" == "1" ]]; then cd $PHPCS_DIR; fi
# Set install path for WordPress Coding Standards.
# @link https:/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941
- $PHPCS_DIR/scripts/phpcs --config-set installed_paths $WPCS_DIR
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs --config-set installed_paths $WPCS_DIR; fi
# Hop back into project dir.
- if [[ "$SNIFF" == "1" ]]; then cd $TRAVIS_BUILD_DIR; fi
# After CodeSniffer install you should refresh your path.
- phpenv rehash
- if [[ "$SNIFF" == "1" ]]; then phpenv rehash; fi


# Run test script commands.
# All commands must exit with code 0 on success. Anything else is considered failure.
script:
# Search for PHP syntax errors.
- find . \( -name '*.php' \) -exec php -lf {} \;
# WordPress Coding Standards
- find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
# WordPress Coding Standards.
# @link https:/WordPress-Coding-Standards/WordPress-Coding-Standards
# @link https:/squizlabs/PHP_CodeSniffer
# All of the usual config flags are held in phpcs.xml
- $PHPCS_DIR/scripts/phpcs
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs; fi

notifications:
email: false
Loading