Skip to content
Permalink
Browse files Browse the repository at this point in the history
Update for xss vulnerability, https://make.wordpress.org/plugins/2015…
  • Loading branch information
jtsternberg committed Apr 20, 2015
1 parent 60bc246 commit 25bb1de
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
16 changes: 8 additions & 8 deletions class-tgm-plugin-activation.php
Expand Up @@ -702,7 +702,7 @@ public function notices() {
array(
'install' => ( current_user_can( 'install_plugins' ) ) ? $show_install_link : '',
'activate' => ( current_user_can( 'activate_plugins' ) ) ? $show_activate_link : '',
'dismiss' => '<a class="dismiss-notice" href="' . add_query_arg( 'tgmpa-dismiss', 'dismiss_admin_notices' ) . '" target="_parent">' . __( 'Dismiss this notice', $this->domain ) . '</a>',
'dismiss' => '<a class="dismiss-notice" href="' . esc_url( add_query_arg( 'tgmpa-dismiss', 'dismiss_admin_notices' ) ) . '" target="_parent">' . __( 'Dismiss this notice', $this->domain ) . '</a>',
)
);

Expand Down Expand Up @@ -911,7 +911,7 @@ public function force_activation() {

/** Set file_path parameter for any installed plugins */
$this->populate_file_path();

$installed_plugins = get_plugins();

foreach ( $this->plugins as $plugin ) {
Expand Down Expand Up @@ -1113,24 +1113,24 @@ protected function _gather_plugin_data() {

$i++;
}

/** Sort plugins by Required/Recommended type and by alphabetical listing within each type */
$resort = array();
$req = array();
$rec = array();

/** Grab all the plugin types */
foreach ( $table_data as $plugin )
$resort[] = $plugin['type'];

/** Sort each plugin by type */
foreach ( $resort as $type )
if ( 'Required' == $type )
$req[] = $type;
else
$rec[] = $type;
/** Sort alphabetically each plugin type array, merge them and then sort in reverse (lists Required plugins first) */

/** Sort alphabetically each plugin type array, merge them and then sort in reverse (lists Required plugins first) */
sort( $req );
sort( $rec );
array_merge( $resort, $req, $rec );
Expand Down Expand Up @@ -2089,4 +2089,4 @@ public function after_flush_output() {

}
}
}
}
2 changes: 1 addition & 1 deletion google-analytics-top-posts-widget.php
Expand Up @@ -6,7 +6,7 @@
Author: Jtsternberg
Author URI: http://jtsternberg.com/about
Donate link: http://j.ustin.co/rYL89n
Version: 1.5.6
Version: 1.5.7
*/


Expand Down
12 changes: 9 additions & 3 deletions readme.txt
Expand Up @@ -9,9 +9,9 @@ Author: Jtsternberg
Author URI: http://jtsternberg.com/about
Donate link: http://j.ustin.co/rYL89n
Requires at least: 3.0
Tested up to: 4.1
Stable tag: 1.5.6
Version: 1.5.6
Tested up to: 4.2
Stable tag: 1.5.7
Version: 1.5.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -98,6 +98,9 @@ If you run into a problem or have a question, contact me ([contact form](http://

== Changelog ==

= 1.5.7 =
* Update for xss vulnerability, https://make.wordpress.org/plugins/2015/04/20/fixing-add_query_arg-and-remove_query_arg-usage

= 1.5.6 =
* Feature: Add thumbnail option to widget.

Expand Down Expand Up @@ -163,6 +166,9 @@ If you were using the shortcode and it broke, you will need to switch to using t

== Upgrade Notice ==

= 1.5.7 =
* Update for xss vulnerability, https://make.wordpress.org/plugins/2015/04/20/fixing-add_query_arg-and-remove_query_arg-usage

= 1.5.6 =
* Feature: Add thumbnail option to widget.

Expand Down

0 comments on commit 25bb1de

Please sign in to comment.