Completed
Branch master (1f12af)
by
unknown
09:17 queued 31s
created
includes/theme-support/class-alnp-storefront.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function init() {
31 31
 		// Add theme support and preset the theme selectors.
32
-		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
32
+		add_action('after_setup_theme', array(__CLASS__, 'add_theme_support'));
33 33
 	} // END init()
34 34
 
35 35
 	/**
@@ -40,14 +40,14 @@  discard block
 block discarded – undo
40 40
 	 * @static
41 41
 	 */
42 42
 	public static function add_theme_support() {
43
-		add_theme_support( 'auto-load-next-post', array(
43
+		add_theme_support('auto-load-next-post', array(
44 44
 			'content_container'    => 'main.site-main',
45 45
 			'title_selector'       => 'h1.entry-title',
46 46
 			'navigation_container' => 'nav.post-navigation',
47 47
 			'comments_container'   => 'section#comments',
48 48
 			'load_js_in_footer'    => 'no',
49 49
 			'lock_js_in_footer'    => 'no',
50
-		) );
50
+		));
51 51
 	} // END add_theme_support()
52 52
 
53 53
 } // END class
Please login to merge, or discard this patch.
includes/theme-support/class-alnp-make.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function init() {
31 31
 		// Filters the repeater template location.
32
-		add_filter( 'alnp_template_redirect', array( __CLASS__, 'alnp_make_template_redirect' ) );
32
+		add_filter('alnp_template_redirect', array(__CLASS__, 'alnp_make_template_redirect'));
33 33
 
34 34
 		// Add theme support and preset the theme selectors.
35
-		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
35
+		add_action('after_setup_theme', array(__CLASS__, 'add_theme_support'));
36 36
 	} // END init()
37 37
 
38 38
 	/**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @return string
44 44
 	 */
45 45
 	public static function alnp_make_template_redirect() {
46
-		return AUTO_LOAD_NEXT_POST_FILE_PATH . '/template/theme-support/make/content-alnp.php';
46
+		return AUTO_LOAD_NEXT_POST_FILE_PATH.'/template/theme-support/make/content-alnp.php';
47 47
 	} // END alnp_make_template_redirect()
48 48
 
49 49
 	/**
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
 	 * @static
55 55
 	 */
56 56
 	public static function add_theme_support() {
57
-		add_theme_support( 'auto-load-next-post', array(
57
+		add_theme_support('auto-load-next-post', array(
58 58
 			'content_container'    => 'main.site-main',
59 59
 			'title_selector'       => 'h1.entry-title',
60 60
 			'navigation_container' => 'nav.post-navigation',
61 61
 			'comments_container'   => 'div#comments',
62 62
 			'load_js_in_footer'    => 'no',
63 63
 			'lock_js_in_footer'    => 'no',
64
-		) );
64
+		));
65 65
 	} // END add_theme_support()
66 66
 
67 67
 } // END class
Please login to merge, or discard this patch.
includes/theme-support/class-alnp-understrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function init() {
31 31
 		// Add theme support and preset the theme selectors.
32
-		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
32
+		add_action('after_setup_theme', array(__CLASS__, 'add_theme_support'));
33 33
 
34 34
 		// Filters the repeater template location.
35
-		add_filter( 'alnp_template_location', array( __CLASS__, 'alnp_understrap_template_location' ) );
35
+		add_filter('alnp_template_location', array(__CLASS__, 'alnp_understrap_template_location'));
36 36
 	} // END init()
37 37
 
38 38
 	/**
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
 	 * @static
54 54
 	 */
55 55
 	public static function add_theme_support() {
56
-		add_theme_support( 'auto-load-next-post', array(
56
+		add_theme_support('auto-load-next-post', array(
57 57
 			'content_container'    => 'main.site-main',
58 58
 			'title_selector'       => 'h1.entry-title',
59 59
 			'navigation_container' => 'nav.post-navigation',
60 60
 			'comments_container'   => 'div#comments',
61 61
 			'load_js_in_footer'    => 'no',
62 62
 			'lock_js_in_footer'    => 'no',
63
-		) );
63
+		));
64 64
 	} // END add_theme_support()
65 65
 
66 66
 } // END class
Please login to merge, or discard this patch.
includes/auto-load-next-post-formatting-functions.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  */
12 12
 
13 13
 // Exit if accessed directly.
14
-if ( ! defined( 'ABSPATH' ) ) {
14
+if ( ! defined('ABSPATH')) {
15 15
 	exit;
16 16
 }
17 17
 
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
  * @param   string|array $var Data to sanitize.
25 25
  * @return  string|array *
26 26
  */
27
-if ( ! function_exists( 'auto_load_next_post_clean' ) ) {
28
-	function auto_load_next_post_clean( $var ) {
29
-		if ( is_array( $var ) ) {
30
-			return array_map( 'auto_load_next_post_clean', $var );
27
+if ( ! function_exists('auto_load_next_post_clean')) {
28
+	function auto_load_next_post_clean($var) {
29
+		if (is_array($var)) {
30
+			return array_map('auto_load_next_post_clean', $var);
31 31
 		} else {
32
-			return is_scalar( $var ) ? sanitize_text_field( $var ) : $var;
32
+			return is_scalar($var) ? sanitize_text_field($var) : $var;
33 33
 		}
34 34
 	} // END auto_load_next_post_clean()
35 35
 }
@@ -44,60 +44,60 @@  discard block
 block discarded – undo
44 44
  * @param   string $seconds Seconds in time.
45 45
  * @return  string
46 46
  */
47
-if ( ! function_exists( 'auto_load_next_post_seconds_to_words' ) ) {
48
-	function auto_load_next_post_seconds_to_words( $seconds ) {
47
+if ( ! function_exists('auto_load_next_post_seconds_to_words')) {
48
+	function auto_load_next_post_seconds_to_words($seconds) {
49 49
 		// Get the years.
50
-		$years = ( intval( $seconds ) / YEAR_IN_SECONDS ) % 100;
51
-		if ( $years > 1 ) {
50
+		$years = (intval($seconds) / YEAR_IN_SECONDS) % 100;
51
+		if ($years > 1) {
52 52
 			/* translators: Number of years */
53
-			return sprintf( __( '%s years', 'auto-load-next-post' ), $years );
54
-		} elseif ( $years > 0 ) {
55
-			return __( 'a year', 'auto-load-next-post' );
53
+			return sprintf(__('%s years', 'auto-load-next-post'), $years);
54
+		} elseif ($years > 0) {
55
+			return __('a year', 'auto-load-next-post');
56 56
 		}
57 57
 
58 58
 		// Get the weeks.
59
-		$weeks = ( intval( $seconds ) / WEEK_IN_SECONDS ) % 52;
60
-		if ( $weeks > 1 ) {
59
+		$weeks = (intval($seconds) / WEEK_IN_SECONDS) % 52;
60
+		if ($weeks > 1) {
61 61
 			/* translators: Number of weeks */
62
-			return sprintf( __( '%s weeks', 'auto-load-next-post' ), $weeks );
63
-		} elseif ( $weeks > 0 ) {
64
-			return __( 'a week', 'auto-load-next-post' );
62
+			return sprintf(__('%s weeks', 'auto-load-next-post'), $weeks);
63
+		} elseif ($weeks > 0) {
64
+			return __('a week', 'auto-load-next-post');
65 65
 		}
66 66
 
67 67
 		// Get the days.
68
-		$days = ( intval( $seconds ) / DAY_IN_SECONDS ) % 7;
69
-		if ( $days > 1 ) {
68
+		$days = (intval($seconds) / DAY_IN_SECONDS) % 7;
69
+		if ($days > 1) {
70 70
 			/* translators: Number of days */
71
-			return sprintf( __( '%s days', 'auto-load-next-post' ), $days );
72
-		} elseif ( $days > 0 ) {
73
-			return __( 'a day', 'auto-load-next-post' );
71
+			return sprintf(__('%s days', 'auto-load-next-post'), $days);
72
+		} elseif ($days > 0) {
73
+			return __('a day', 'auto-load-next-post');
74 74
 		}
75 75
 
76 76
 		// Get the hours.
77
-		$hours = ( intval( $seconds ) / HOUR_IN_SECONDS ) % 24;
78
-		if ( $hours > 1 ) {
77
+		$hours = (intval($seconds) / HOUR_IN_SECONDS) % 24;
78
+		if ($hours > 1) {
79 79
 			/* translators: Number of hours */
80
-			return sprintf( __( '%s hours', 'auto-load-next-post' ), $hours );
81
-		} elseif ( $hours > 0 ) {
82
-			return __( 'an hour', 'auto-load-next-post' );
80
+			return sprintf(__('%s hours', 'auto-load-next-post'), $hours);
81
+		} elseif ($hours > 0) {
82
+			return __('an hour', 'auto-load-next-post');
83 83
 		}
84 84
 
85 85
 		// Get the minutes.
86
-		$minutes = ( intval( $seconds ) / MINUTE_IN_SECONDS ) % 60;
87
-		if ( $minutes > 1 ) {
86
+		$minutes = (intval($seconds) / MINUTE_IN_SECONDS) % 60;
87
+		if ($minutes > 1) {
88 88
 			/* translators: Number of minutes */
89
-			return sprintf( __( '%s minutes', 'auto-load-next-post' ), $minutes );
90
-		} elseif ( $minutes > 0 ) {
91
-			return __( 'a minute', 'auto-load-next-post' );
89
+			return sprintf(__('%s minutes', 'auto-load-next-post'), $minutes);
90
+		} elseif ($minutes > 0) {
91
+			return __('a minute', 'auto-load-next-post');
92 92
 		}
93 93
 
94 94
 		// Get the seconds.
95
-		$seconds = intval( $seconds ) % 60;
96
-		if ( $seconds > 1 ) {
95
+		$seconds = intval($seconds) % 60;
96
+		if ($seconds > 1) {
97 97
 			/* translators: Number of seconds */
98
-			return sprintf( __( '%s seconds', 'auto-load-next-post' ), $seconds );
99
-		} elseif ( $seconds > 0 ) {
100
-			return __( 'a second', 'auto-load-next-post' );
98
+			return sprintf(__('%s seconds', 'auto-load-next-post'), $seconds);
99
+		} elseif ($seconds > 0) {
100
+			return __('a second', 'auto-load-next-post');
101 101
 		}
102 102
 	} // END auto_load_next_post_seconds_to_words()
103 103
 }
Please login to merge, or discard this patch.
includes/customizer/class-alnp-customizer-scripts.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly.
13
-if ( ! defined( 'ABSPATH' ) ) {
13
+if ( ! defined('ABSPATH')) {
14 14
 	exit;
15 15
 }
16 16
 
17 17
 // Exit if Auto_Load_Next_Post_Customizer_Scripts class already exists.
18
-if ( !class_exists( 'Auto_Load_Next_Post_Customizer_Scripts' ) ) {
18
+if ( ! class_exists('Auto_Load_Next_Post_Customizer_Scripts')) {
19 19
 
20 20
 	class Auto_Load_Next_Post_Customizer_Scripts {
21 21
 
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 		 * @access public
27 27
 		 */
28 28
 		public function __construct() {
29
-			add_action( 'customize_preview_init', array( $this, 'alnp_add_customizer_preview_scripts' ) );
30
-			add_action( 'customize_controls_print_scripts', array( $this, 'alnp_add_scripts' ), 30 );
29
+			add_action('customize_preview_init', array($this, 'alnp_add_customizer_preview_scripts'));
30
+			add_action('customize_controls_print_scripts', array($this, 'alnp_add_scripts'), 30);
31 31
 		}
32 32
 
33 33
 		/**
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 		 * @since 1.5.0
37 37
 		 */
38 38
 		public function alnp_add_customizer_preview_scripts() {
39
-			Auto_Load_Next_Post::load_file( 'alnp-theme-customizer', '/assets/js/customizer/theme-customizer.js', true, array( 'customize-preview' ), '', true );
39
+			Auto_Load_Next_Post::load_file('alnp-theme-customizer', '/assets/js/customizer/theme-customizer.js', true, array('customize-preview'), '', true);
40 40
 		} // END alnp_add_customizer_preview_scripts()
41 41
 
42 42
 		/**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 						 * but we are not viewing a single post.
68 68
 						 */
69 69
 						if ( isExpanded && !is_page_single ) {
70
-							wp.customize.previewer.previewUrl.set( '<?php echo esc_js( alnp_get_random_page_permalink() ); ?>' );
70
+							wp.customize.previewer.previewUrl.set( '<?php echo esc_js(alnp_get_random_page_permalink()); ?>' );
71 71
 						}
72 72
 
73 73
 					} );
Please login to merge, or discard this patch.
includes/admin/views/html-notice-no-comment-selector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
  */
12 12
 
13 13
 // Exit if accessed directly.
14
-if ( ! defined( 'ABSPATH' ) ) {
14
+if ( ! defined('ABSPATH')) {
15 15
 	exit;
16 16
 }
17 17
 ?>
18 18
 <div class="notice notice-error">
19
-	<p><?php echo sprintf( __( 'In order to remove comments we need to know what the comments container is. Please identify the comments container under <strong>Theme Selectors</strong>. %1$sHow to find my theme selectors?%2$s', 'auto-load-next-post' ), '<a href="' . AUTO_LOAD_NEXT_POST_STORE_URL . 'documentation/find-theme-selectors/?utm_source=wpadmin&utm_campaign=plugin-settings-misc" target="_blank">', '</a>' ); ?></p>
19
+	<p><?php echo sprintf(__('In order to remove comments we need to know what the comments container is. Please identify the comments container under <strong>Theme Selectors</strong>. %1$sHow to find my theme selectors?%2$s', 'auto-load-next-post'), '<a href="'.AUTO_LOAD_NEXT_POST_STORE_URL.'documentation/find-theme-selectors/?utm_source=wpadmin&utm_campaign=plugin-settings-misc" target="_blank">', '</a>'); ?></p>
20 20
 </div>
Please login to merge, or discard this patch.
includes/admin/views/html-notice-please-review.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -11,28 +11,28 @@
 block discarded – undo
11 11
  */
12 12
 
13 13
 // Exit if accessed directly.
14
-if ( ! defined( 'ABSPATH' ) ) {
14
+if ( ! defined('ABSPATH')) {
15 15
 	exit;
16 16
 }
17 17
 
18 18
 $current_user = wp_get_current_user();
19 19
 
20
-$time = auto_load_next_post_seconds_to_words( time() - $install_date );
20
+$time = auto_load_next_post_seconds_to_words(time() - $install_date);
21 21
 ?>
22 22
 <div class="notice notice-info auto-load-next-post-notice">
23 23
 	<div class="auto-load-next-post-notice-inner">
24 24
 		<div class="auto-load-next-post-notice-icon">
25
-			<img src="https://ps.w.org/auto-load-next-post/assets/icon-256x256.png" alt="<?php echo esc_attr__( 'Auto Load Next Post WordPress Plugin', 'auto-load-next-post' ); ?>" />
25
+			<img src="https://ps.w.org/auto-load-next-post/assets/icon-256x256.png" alt="<?php echo esc_attr__('Auto Load Next Post WordPress Plugin', 'auto-load-next-post'); ?>" />
26 26
 		</div>
27 27
 
28 28
 		<div class="auto-load-next-post-notice-content">
29
-			<h3><?php echo esc_html__( 'Are you enjoying Auto Load Next Post?', 'auto-load-next-post' ); ?></h3>
30
-			<p><?php printf( esc_html__( 'You have been using %1$s for %2$s now! Mind leaving a quick review and let me know know what you think of the plugin? I\'d really appreciate it!', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), esc_html( $time ) ); ?></p>
29
+			<h3><?php echo esc_html__('Are you enjoying Auto Load Next Post?', 'auto-load-next-post'); ?></h3>
30
+			<p><?php printf(esc_html__('You have been using %1$s for %2$s now! Mind leaving a quick review and let me know know what you think of the plugin? I\'d really appreciate it!', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), esc_html($time)); ?></p>
31 31
 		</div>
32 32
 
33 33
 		<div class="auto-load-next-post-review-now">
34
-			<?php printf( '<a href="%1$s" class="button button-primary auto-load-next-post-review-button" target="_blank">%2$s</a>', esc_url( AUTO_LOAD_NEXT_POST_REVIEW_URL . '?rate=5#new-post' ), esc_html__( 'Leave a Review', 'auto-load-next-post' ) ); ?>
35
-			<a href="<?php echo esc_url( add_query_arg( 'hide_auto_load_next_post_review_notice', 'true' ) ); ?>" class="no-thanks"><?php echo esc_html__( 'No thank you / I already have', 'auto-load-next-post' ); ?></a>
34
+			<?php printf('<a href="%1$s" class="button button-primary auto-load-next-post-review-button" target="_blank">%2$s</a>', esc_url(AUTO_LOAD_NEXT_POST_REVIEW_URL.'?rate=5#new-post'), esc_html__('Leave a Review', 'auto-load-next-post')); ?>
35
+			<a href="<?php echo esc_url(add_query_arg('hide_auto_load_next_post_review_notice', 'true')); ?>" class="no-thanks"><?php echo esc_html__('No thank you / I already have', 'auto-load-next-post'); ?></a>
36 36
 		</div>
37 37
 	</div>
38 38
 </div>
Please login to merge, or discard this patch.
includes/admin/views/html-notice-welcome.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,31 +11,31 @@  discard block
 block discarded – undo
11 11
  */
12 12
 
13 13
 // Exit if accessed directly.
14
-if ( ! defined( 'ABSPATH' ) ) {
14
+if ( ! defined('ABSPATH')) {
15 15
 	exit;
16 16
 }
17 17
 ?>
18 18
 <div class="notice notice-success auto-load-next-post-notice">
19 19
 	<div class="auto-load-next-post-notice-inner">
20 20
 		<div class="auto-load-next-post-notice-icon">
21
-			<img src="https://ps.w.org/auto-load-next-post/assets/icon-256x256.png" alt="<?php echo esc_attr__( 'Auto Load Next Post WordPress Plugin', 'auto-load-next-post' ); ?>" />
21
+			<img src="https://ps.w.org/auto-load-next-post/assets/icon-256x256.png" alt="<?php echo esc_attr__('Auto Load Next Post WordPress Plugin', 'auto-load-next-post'); ?>" />
22 22
 		</div>
23 23
 
24 24
 		<div class="auto-load-next-post-notice-content">
25
-			<h3><?php echo esc_html__( 'Welcome!', 'auto-load-next-post' ); ?></h3>
25
+			<h3><?php echo esc_html__('Welcome!', 'auto-load-next-post'); ?></h3>
26 26
 			<p>
27
-				<?php echo sprintf( __( 'Thank you for activating %1$s! If you\'re a first time user, welcome! You\'re well on your way to increasing your pageviews.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ); ?>
27
+				<?php echo sprintf(__('Thank you for activating %1$s! If you\'re a first time user, welcome! You\'re well on your way to increasing your pageviews.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post')); ?>
28 28
 				<?php
29 29
 				// If the theme has not added support then encourage the user to see the documentation.
30
-				if ( ! is_alnp_supported() ) {
30
+				if ( ! is_alnp_supported()) {
31 31
 					$query = array(
32 32
 						'autofocus[panel]'   => 'alnp',
33 33
 						'autofocus[section]' => 'auto_load_next_post_theme_selectors',
34 34
 						'url'                => alnp_get_random_page_permalink(),
35
-						'return'             => admin_url( 'options-general.php?page=auto-load-next-post-settings' ),
35
+						'return'             => admin_url('options-general.php?page=auto-load-next-post-settings'),
36 36
 					);
37
-					$customizer_link = add_query_arg( $query, admin_url( 'customize.php' ) );
38
-					echo sprintf( __( 'I encourage you to check out the plugin documentation and getting started with %1$ssetting up your theme selectors%2$s.', 'auto-load-next-post' ), '<a href="' . esc_url( $customizer_link ) . '">', '</a>' );
37
+					$customizer_link = add_query_arg($query, admin_url('customize.php'));
38
+					echo sprintf(__('I encourage you to check out the plugin documentation and getting started with %1$ssetting up your theme selectors%2$s.', 'auto-load-next-post'), '<a href="'.esc_url($customizer_link).'">', '</a>');
39 39
 				}
40 40
 				?>
41 41
 			</p>
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
 		<div class="auto-load-next-post-documentation">
45 45
 			<?php
46 46
 			// If the theme has not added support then display button to documentation.
47
-			if ( ! is_alnp_supported() ) {
48
-				printf( '<a href="%1$s" class="button button-primary auto-load-next-post-documentation-button" target="_blank">%2$s</a>', esc_url( AUTO_LOAD_NEXT_POST_STORE_URL . 'documentation/?utm_source=plugin&utm_medium=link&utm_campaign=welcome-notice' ), esc_html__( 'Documentation', 'auto-load-next-post' ) );
47
+			if ( ! is_alnp_supported()) {
48
+				printf('<a href="%1$s" class="button button-primary auto-load-next-post-documentation-button" target="_blank">%2$s</a>', esc_url(AUTO_LOAD_NEXT_POST_STORE_URL.'documentation/?utm_source=plugin&utm_medium=link&utm_campaign=welcome-notice'), esc_html__('Documentation', 'auto-load-next-post'));
49 49
 			}
50 50
 			?>
51
-			<a href="<?php echo esc_url( add_query_arg( 'hide_auto_load_next_post_welcome_notice', 'true' ) ); ?>" class="no-thanks"><?php echo esc_html__( 'Dismiss Notice', 'auto-load-next-post' ); ?></a>
51
+			<a href="<?php echo esc_url(add_query_arg('hide_auto_load_next_post_welcome_notice', 'true')); ?>" class="no-thanks"><?php echo esc_html__('Dismiss Notice', 'auto-load-next-post'); ?></a>
52 52
 		</div>
53 53
 	</div>
54 54
 </div>
Please login to merge, or discard this patch.
includes/admin/views/html-notice-no-theme-selectors.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
  */
12 12
 
13 13
 // Exit if accessed directly.
14
-if ( ! defined( 'ABSPATH' ) ) {
14
+if ( ! defined('ABSPATH')) {
15 15
 	exit;
16 16
 }
17 17
 ?>
18 18
 <div class="notice notice-error">
19
-	<p><?php echo sprintf( __( 'It seems that not all of the required theme selectors have been set. These theme selectors are required in order for %1$s to work. %2$sHow to find my theme selectors?%3$s', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), '<a href="' . AUTO_LOAD_NEXT_POST_STORE_URL . 'documentation/find-theme-selectors/?utm_source=wpadmin&utm_campaign=plugin-settings-theme-selectors" target="_blank">', '</a>' ); ?></p>
19
+	<p><?php echo sprintf(__('It seems that not all of the required theme selectors have been set. These theme selectors are required in order for %1$s to work. %2$sHow to find my theme selectors?%3$s', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), '<a href="'.AUTO_LOAD_NEXT_POST_STORE_URL.'documentation/find-theme-selectors/?utm_source=wpadmin&utm_campaign=plugin-settings-theme-selectors" target="_blank">', '</a>'); ?></p>
20 20
 </div>
Please login to merge, or discard this patch.