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

Release v 2.6.0 #581

merged 95 commits into from
May 15, 2016

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented May 15, 2016

Needs tagging with the changelog as tag comment after merge.

elvis.pereira and others added 30 commits July 16, 2015 11:31
Was hooked in only when not all plugins were active/installed/up-to-date, while the filters to prevent deactivation of force-activated plugins should also be added when all required/recommended plugins are already there.
Action links would not always be filtered.
Bypass latest Theme Check update for add_submenu_page calls.
po and mo files
added ru_RU translation files
Fixes a very minor potential CSRF vulnerability of which the impact would be small anyhow.

Fixes #487.
* Include PHP 7 in the matrix
* Fair use of travis/faster finish: sniff results won't change across PHP versions, so only run once.
* Fix one codestyle issue picked up by updated ruleset.
Semi-consistent display of the admin notice.

Fixes #478, #495. Props @Ninos

Work around all the changes to the various admin notice classes between WP 4.4 and 3.7 (lowest WP version currently supported by TGMPA).
Remove plugin header from main file to avoid confusing WP.
Don't try and bulk-install plugins which are already installed.
Use a nonce for the notice dismissal.
By default the following logic will be used:
User < `'publish_posts'` (=Author): no admin notices
User < install/update/activate: "contact administrator notice" without disclosing information about the plugins involved and only if there are *required* plugins which require action.
User = install/update/activate: "normal" notices

The minimum user level for which admin notices are shown at all can be adjusted by using the newly introduced `tgmpa_show_admin_notice_capability` filter. The default capability is set to `'publish_posts'`.

Example:
add_filter( 'tgmpa_show_admin_notice_capability', create_function( '$cap', 'return \'edit_pages\';' ) );

Another example:
To only show the admin notices to network admins on multisite, set it to a super admin capability like `'manage_network_plugins'`.

Note: the `notices()` function is ugly and in desperate need of refactoring, that is not handled in this PR (which only makes it worse).

Fixes #190, #414
Supersedes: https:/INN/Largo/pull/740/files
Partially fixes #479, #489 - notice will now only show for required updates for non-admin users with level author or editor.
Possibly fixes #492, though more information is needed on the actual case.
Updated the example file with examples for different include situations.
Prevent updating plugins which are not installed.
Variable admin notices based on user level.
Page title still said "installing", not "updating" which was confusing.

![screenshot](http://snag.gy/nSUXg.jpg)
Account for some changes in the WP core javascript in wp-admin/js/common.js.

Pff.. this took a lot of time to figure out and debug.... and that for a change this small...

Fixes #510
jrfnl and others added 23 commits April 21, 2016 14:04
Created a new translation for Czech. Credits to Karolína Vyskočilová, http://kybernaut.cz .
Croatian translation of TGM-Plugin-Activation
More comprehensive scrutinizer config.
Also: only try to deactivate if it's a 'normal' plugin, i.e. not a must-use plugin.
[Usability] Add force deactivated plugins to the `recently_active` plugins list.
Extracted a number of additional translations for TGMPA from GlotPress.
Also:
* Added version nr to `@since` tags for new functions.
* Added some missing changes from the 2.5.0 release.
* Added the GH issue nrs to the 2.5.1 and 2.5.2 release changelog.
@GaryJones
Copy link
Member

Merged, thanks @jrfnl!

@GaryJones GaryJones added this to the 2.6.0 milestone May 15, 2016
@jrfnl
Copy link
Contributor Author

jrfnl commented May 15, 2016

Tagged & added release notes.

@jrfnl
Copy link
Contributor Author

jrfnl commented May 15, 2016

Also fast-forwarded develop to be equal to master as the starting point for the next round of changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants