Completed
Pull Request — develop (#512)
by Juliette
02:19
created
class-tgm-plugin-activation.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1327,13 +1327,13 @@
 block discarded – undo
1327 1327
 			$key     = preg_replace( '`[^A-Za-z0-9_-]`', '', $key );
1328 1328
 
1329 1329
 			/**
1330
-			* Filter a sanitized key string.
1331
-			*
1332
-			* @since 3.0.0
1333
-			*
1334
-			* @param string $key     Sanitized key.
1335
-			* @param string $raw_key The key prior to sanitization.
1336
-			*/
1330
+			 * Filter a sanitized key string.
1331
+			 *
1332
+			 * @since 3.0.0
1333
+			 *
1334
+			 * @param string $key     Sanitized key.
1335
+			 * @param string $raw_key The key prior to sanitization.
1336
+			 */
1337 1337
 			return apply_filters( 'tgmpa_sanitize_key', $key, $raw_key );
1338 1338
 		}
1339 1339
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -971,7 +971,8 @@  discard block
 block discarded – undo
971 971
 					if ( ! $automatic ) {
972 972
 						// Make sure message doesn't display again if bulk activation is performed
973 973
 						// immediately after a single activation.
974
-						if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK.
974
+						if ( ! isset( $_POST['action'] ) ) {
975
+// WPCS: CSRF OK.
975 976
 							echo '<div id="message" class="updated"><p>', esc_html( $this->strings['activated_successfully'] ), ' <strong>', esc_html( $this->plugins[ $slug ]['name'] ), '.</strong></p></div>';
976 977
 						}
977 978
 					} else {
@@ -992,7 +993,8 @@  discard block
 block discarded – undo
992 993
 				if ( ! $automatic ) {
993 994
 					// Make sure message doesn't display again if bulk activation is performed
994 995
 					// immediately after a single activation.
995
-					if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK.
996
+					if ( ! isset( $_POST['action'] ) ) {
997
+// WPCS: CSRF OK.
996 998
 						echo '<div id="message" class="error"><p>',
997 999
 							sprintf(
998 1000
 								esc_html( $this->strings['plugin_needs_higher_version'] ),
Please login to merge, or discard this patch.
example.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file represents an example of the code that themes would use to register
4
- * the required plugins.
5
- *
6
- * It is expected that theme authors would copy and paste this code into their
7
- * functions.php file, and amend to suit.
8
- *
9
- * @see http://tgmpluginactivation.com/configuration/ for detailed documentation.
10
- *
11
- * @package    TGM-Plugin-Activation
12
- * @subpackage Example
13
- * @version    2.5.2
14
- * @author     Thomas Griffin, Gary Jones, Juliette Reinders Folmer
15
- * @copyright  Copyright (c) 2011, Thomas Griffin
16
- * @license    http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
17
- * @link       https://github.com/TGMPA/TGM-Plugin-Activation
18
- */
3
+	 * This file represents an example of the code that themes would use to register
4
+	 * the required plugins.
5
+	 *
6
+	 * It is expected that theme authors would copy and paste this code into their
7
+	 * functions.php file, and amend to suit.
8
+	 *
9
+	 * @see http://tgmpluginactivation.com/configuration/ for detailed documentation.
10
+	 *
11
+	 * @package    TGM-Plugin-Activation
12
+	 * @subpackage Example
13
+	 * @version    2.5.2
14
+	 * @author     Thomas Griffin, Gary Jones, Juliette Reinders Folmer
15
+	 * @copyright  Copyright (c) 2011, Thomas Griffin
16
+	 * @license    http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
17
+	 * @link       https://github.com/TGMPA/TGM-Plugin-Activation
18
+	 */
19 19
 
20 20
 /**
21 21
  * Include the TGM_Plugin_Activation class.
Please login to merge, or discard this patch.