Skip to content

Commit c626d0d

Browse files
committed
Merge branch 'develop'
2 parents afccf1e + 84dd64f commit c626d0d

39 files changed

+1781
-1774
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog for TGM Plugin Activation library
22

3+
## 2.6.1 (2016-05-19)
4+
5+
* Fix a string replacement issue in the plugin action links. Thanks [Nilambar Sharma] for reporting. [#587], [#588]
6+
37
## 2.6.0 (2016-05-14)
48

59
Since mid-February we offer a _"Custom TGMPA Generator"_. From now on, that is the preferred way for downloading your copy of TGMPA for use in a theme or plugin.
@@ -324,6 +328,7 @@ TGMPA will start providing localized text strings soon. If you already have tran
324328
[Mika Epstein]: https://github.com/Ipstenu
325329
[Mohamed A. Baset]: https://github.com/SymbianSyMoh
326330
[Nate Wright]: https://github.com/NateWr
331+
[Nilambar Sharma]: https://github.com/ernilambar
327332
[Ninos Ego]: https://github.com/Ninos
328333
[Ollie Treend]: https://github.com/ollietreend
329334
[Parhum Khoshbakht]: https://github.com/parhumm
@@ -349,6 +354,8 @@ TGMPA will start providing localized text strings soon. If you already have tran
349354
[Marciel Bartzik]: http://www.bartzik.net/
350355
[Zauan/Hogash Studio]: http://pastebin.com/u/Zauan
351356

357+
[#588]: https://github.com/TGMPA/TGM-Plugin-Activation/pull/588
358+
[#587]: https://github.com/TGMPA/TGM-Plugin-Activation/issues/587
352359
[#577]: https://github.com/TGMPA/TGM-Plugin-Activation/pull/577
353360
[#574]: https://github.com/TGMPA/TGM-Plugin-Activation/pull/574
354361
[#571]: https://github.com/TGMPA/TGM-Plugin-Activation/pull/571

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
**Lead Developers:**
88
[Thomas Griffin](https://github.com/thomasgriffin) ([@jthomasgriffin](https://twitter.com/jthomasgriffin)), [Gary Jones](https://github.com/GaryJones) ([@GaryJ](https://twitter.com/GaryJ)), [Juliette Reinders Folmer](https://github.com/jrfnl) ([@jrf_nl](https://twitter.com/jrf_nl))
9-
**Version:** 2.6.0-RC1
9+
**Version:** 2.6.1
1010
**Requires at least:** 3.7.0
1111
**Tested up to:** 4.5.2
1212

class-tgm-plugin-activation.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* or theme author for support.
99
*
1010
* @package TGM-Plugin-Activation
11-
* @version 2.6.0
11+
* @version 2.6.1
1212
* @link http://tgmpluginactivation.com/
1313
* @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer
1414
* @copyright Copyright (c) 2011, Thomas Griffin
@@ -55,7 +55,7 @@ class TGM_Plugin_Activation {
5555
*
5656
* @const string Version number.
5757
*/
58-
const TGMPA_VERSION = '2.6.0';
58+
const TGMPA_VERSION = '2.6.1';
5959

6060
/**
6161
* Regular expression to test if a URL is a WP plugin repo URL.
@@ -2692,19 +2692,19 @@ protected function get_row_actions( $item ) {
26922692

26932693
// Display the 'Install' action link if the plugin is not yet available.
26942694
if ( ! $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
2695-
/* translators: %s: plugin name in screen reader markup */
2696-
$actions['install'] = __( 'Install %s', 'tgmpa' );
2695+
/* translators: %2$s: plugin name in screen reader markup */
2696+
$actions['install'] = __( 'Install %2$s', 'tgmpa' );
26972697
} else {
26982698
// Display the 'Update' action link if an update is available and WP complies with plugin minimum.
26992699
if ( false !== $this->tgmpa->does_plugin_have_update( $item['slug'] ) && $this->tgmpa->can_plugin_update( $item['slug'] ) ) {
2700-
/* translators: %s: plugin name in screen reader markup */
2701-
$actions['update'] = __( 'Update %s', 'tgmpa' );
2700+
/* translators: %2$s: plugin name in screen reader markup */
2701+
$actions['update'] = __( 'Update %2$s', 'tgmpa' );
27022702
}
27032703

27042704
// Display the 'Activate' action link, but only if the plugin meets the minimum version.
27052705
if ( $this->tgmpa->can_plugin_activate( $item['slug'] ) ) {
2706-
/* translators: %s: plugin name in screen reader markup */
2707-
$actions['activate'] = __( 'Activate %s', 'tgmpa' );
2706+
/* translators: %2$s: plugin name in screen reader markup */
2707+
$actions['activate'] = __( 'Activate %2$s', 'tgmpa' );
27082708
}
27092709
}
27102710

@@ -2723,7 +2723,7 @@ protected function get_row_actions( $item ) {
27232723
);
27242724

27252725
$action_links[ $action ] = sprintf(
2726-
'<a href="%1$s">' . esc_html( $text ) . '</a>',
2726+
'<a href="%1$s">' . esc_html( $text ) . '</a>', // $text contains the second placeholder.
27272727
esc_url( $nonce_url ),
27282728
'<span class="screen-reader-text">' . esc_html( $item['sanitized_plugin'] ) . '</span>'
27292729
);

example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @package TGM-Plugin-Activation
1212
* @subpackage Example
13-
* @version 2.6.0
13+
* @version 2.6.1
1414
* @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer
1515
* @copyright Copyright (c) 2011, Thomas Griffin
1616
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later

languages/tgmpa-cs_CZ.mo

-65 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)