Completed
Pull Request — master (#174)
by
unknown
01:45
created
includes/admin/views/html-notice-is-supported.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@
 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
 $active_theme = wp_get_theme();
19 19
 ?>
20 20
 <div class="notice notice-info">
21
-	<p><?php echo sprintf( __( 'Your active theme %1$s, supports %2$s. Changes to set theme selectors are disabled.', 'auto-load-next-post' ), $active_theme->name, esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ); ?></p>
21
+	<p><?php echo sprintf(__('Your active theme %1$s, supports %2$s. Changes to set theme selectors are disabled.', 'auto-load-next-post'), $active_theme->name, esc_html__('Auto Load Next Post', 'auto-load-next-post')); ?></p>
22 22
 </div>
Please login to merge, or discard this patch.
includes/admin/views/html-admin-sidebar.php 1 patch
Spacing   +22 added lines, -22 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
 
@@ -22,56 +22,56 @@  discard block
 block discarded – undo
22 22
 $last_name    = $current_user->last_name;
23 23
 ?>
24 24
 <div class="alnp-upgrade-details">
25
-	<h1><?php esc_html_e( 'Pro Coming Soon', 'auto-load-next-post' ); ?></h1>
25
+	<h1><?php esc_html_e('Pro Coming Soon', 'auto-load-next-post'); ?></h1>
26 26
 
27 27
 	<ul>
28
-		<li><?php echo esc_html__( 'Load the Next Post or Next Post with same Category or New Posts or Related Posts or by Custom Query', 'auto-load-next-post' ); ?></li>
29
-		<li><?php echo esc_html__( 'Page and Media Attachment Support', 'auto-load-next-post' ); ?></li>
30
-		<li><?php echo esc_html__( 'Custom Post Type Support', 'auto-load-next-post' ); ?></li>
31
-		<li><?php echo esc_html__( 'Paginated Posts Supported', 'auto-load-next-post' ); ?></li>
32
-		<li><?php echo esc_html__( 'Exclude Post Formats', 'auto-load-next-post' ); ?></li>
33
-		<li><?php echo esc_html__( 'Limit Posts per Session', 'auto-load-next-post' ); ?></li>
34
-		<li><?php echo esc_html__( 'Query Posts by Category and Tag', 'auto-load-next-post' ); ?></li>
35
-		<li><?php echo esc_html__( 'Exclude User Roles and Specific Users', 'auto-load-next-post' ); ?></li>
36
-		<li><?php echo esc_html__( 'Pre-Query Posts Ready to Load', 'auto-load-next-post' ); ?></li>
37
-		<li><?php echo esc_html__( 'Hide Comments and Show by Toggle Button', 'auto-load-next-post' ); ?></li>
38
-		<li><?php echo sprintf( esc_html__( 'Multilingual Support for %1$s and %2$s', 'auto-load-next-post' ), 'WPML', 'Polylang' ); ?></li>
39
-		<li><?php echo esc_html__( 'Email Support', 'auto-load-next-post' ); ?></li>
28
+		<li><?php echo esc_html__('Load the Next Post or Next Post with same Category or New Posts or Related Posts or by Custom Query', 'auto-load-next-post'); ?></li>
29
+		<li><?php echo esc_html__('Page and Media Attachment Support', 'auto-load-next-post'); ?></li>
30
+		<li><?php echo esc_html__('Custom Post Type Support', 'auto-load-next-post'); ?></li>
31
+		<li><?php echo esc_html__('Paginated Posts Supported', 'auto-load-next-post'); ?></li>
32
+		<li><?php echo esc_html__('Exclude Post Formats', 'auto-load-next-post'); ?></li>
33
+		<li><?php echo esc_html__('Limit Posts per Session', 'auto-load-next-post'); ?></li>
34
+		<li><?php echo esc_html__('Query Posts by Category and Tag', 'auto-load-next-post'); ?></li>
35
+		<li><?php echo esc_html__('Exclude User Roles and Specific Users', 'auto-load-next-post'); ?></li>
36
+		<li><?php echo esc_html__('Pre-Query Posts Ready to Load', 'auto-load-next-post'); ?></li>
37
+		<li><?php echo esc_html__('Hide Comments and Show by Toggle Button', 'auto-load-next-post'); ?></li>
38
+		<li><?php echo sprintf(esc_html__('Multilingual Support for %1$s and %2$s', 'auto-load-next-post'), 'WPML', 'Polylang'); ?></li>
39
+		<li><?php echo esc_html__('Email Support', 'auto-load-next-post'); ?></li>
40 40
 	</ul>
41 41
 
42 42
 	<p>
43
-		<a href="<?php echo AUTO_LOAD_NEXT_POST_STORE_URL; ?>pro/?utm_source=plugin&utm_medium=link&utm_campaign=alnp-settings-page"><?php esc_html_e( 'Visit autoloadnextpost.com &rarr;', 'auto-load-next-post' ); ?></a>
43
+		<a href="<?php echo AUTO_LOAD_NEXT_POST_STORE_URL; ?>pro/?utm_source=plugin&utm_medium=link&utm_campaign=alnp-settings-page"><?php esc_html_e('Visit autoloadnextpost.com &rarr;', 'auto-load-next-post'); ?></a>
44 44
 	</p>
45 45
 
46 46
 </div>
47 47
 
48 48
 <form method="post" action="https://sebastiendumont.us1.list-manage.com/subscribe/post?u=48ead612ad85b23fe2239c6e3&amp;id=79e97b5275" name="mc-embedded-subscribe-form" target="_blank" class="subscribe block">
49
-	<h2><?php esc_html_e( 'Sign up to pre-order first', 'auto-load-next-post' ); ?></h2>
49
+	<h2><?php esc_html_e('Sign up to pre-order first', 'auto-load-next-post'); ?></h2>
50 50
 
51 51
 	<p class="intro">
52
-		<?php echo sprintf( __( 'Submit your name and email and be the first to know when you can pre-order %1$s and keep up to date with my developments plus a %2$s discount.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post Pro', 'auto-load-next-post' ), '20%' ); ?>
52
+		<?php echo sprintf(__('Submit your name and email and be the first to know when you can pre-order %1$s and keep up to date with my developments plus a %2$s discount.', 'auto-load-next-post'), esc_html__('Auto Load Next Post Pro', 'auto-load-next-post'), '20%'); ?>
53 53
 	</p>
54 54
 
55 55
 	<div class="field">
56
-		<input type="email" name="EMAIL" value="<?php echo $user_email; ?>" placeholder="<?php esc_html_e( 'Your Email Address', 'auto-load-next-post' ); ?>"/>
56
+		<input type="email" name="EMAIL" value="<?php echo $user_email; ?>" placeholder="<?php esc_html_e('Your Email Address', 'auto-load-next-post'); ?>"/>
57 57
 	</div>
58 58
 
59 59
 	<div class="field">
60
-		<input type="text" name="FNAME" value="<?php echo $first_name; ?>" placeholder="<?php esc_html_e( 'First Name', 'auto-load-next-post' ); ?>"/>
60
+		<input type="text" name="FNAME" value="<?php echo $first_name; ?>" placeholder="<?php esc_html_e('First Name', 'auto-load-next-post'); ?>"/>
61 61
 	</div>
62 62
 
63 63
 	<div class="field">
64
-		<input type="text" name="LNAME" value="<?php echo $last_name; ?>" placeholder="<?php esc_html_e( 'Last Name', 'auto-load-next-post' ); ?>"/>
64
+		<input type="text" name="LNAME" value="<?php echo $last_name; ?>" placeholder="<?php esc_html_e('Last Name', 'auto-load-next-post'); ?>"/>
65 65
 	</div>
66 66
 
67 67
 	<input type="hidden" name="group[35169][1]" value="1">
68 68
 
69 69
 	<div class="field submit-button">
70 70
 		<div style="position: absolute; left: -9999px;" aria-hidden="true"><input type="text" name="b_48ead612ad85b23fe2239c6e3_79e97b5275" tabindex="-1" value=""></div>
71
-		<input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="<?php esc_html_e( 'Sign me up', 'auto-load-next-post' ); ?>"/>
71
+		<input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="<?php esc_html_e('Sign me up', 'auto-load-next-post'); ?>"/>
72 72
 	</div>
73 73
 
74 74
 	<p class="promise">
75
-		<?php esc_html_e( 'I promise I will not use your email for anything else and you can unsubscribe with 1-click anytime.', 'auto-load-next-post' ); ?>
75
+		<?php esc_html_e('I promise I will not use your email for anything else and you can unsubscribe with 1-click anytime.', 'auto-load-next-post'); ?>
76 76
 	</p>
77 77
 </form>
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
includes/admin/views/html-admin-sidebar-logo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 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
 <a class="alnp-banner" href="https://autoloadnextpost.com/?utm_source=plugin&utm_medium=alnp-banner&utm_campaign=alnp-settings-page">
18
-	<img src="<?php echo AUTO_LOAD_NEXT_POST_URL_PATH . '/assets/images/banner.png'; ?>" alt="<?php _e( 'Auto Load Next Post', 'auto-load-next-post' ); ?>" width="100%" />
18
+	<img src="<?php echo AUTO_LOAD_NEXT_POST_URL_PATH.'/assets/images/banner.png'; ?>" alt="<?php _e('Auto Load Next Post', 'auto-load-next-post'); ?>" width="100%" />
19 19
 </a>
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 %1$sTheme Selectors%2$s. %3$sHow to find my theme selectors?%4$s', 'auto-load-next-post' ), '<strong>', '</strong>', '<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 %1$sTheme Selectors%2$s. %3$sHow to find my theme selectors?%4$s', 'auto-load-next-post'), '<strong>', '</strong>', '<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-admin-settings.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -13,17 +13,17 @@  discard block
 block discarded – undo
13 13
  */
14 14
 
15 15
 // Exit if accessed directly.
16
-if ( ! defined( 'ABSPATH' ) ) {
16
+if ( ! defined('ABSPATH')) {
17 17
 	exit;
18 18
 }
19 19
 
20 20
 global $current_section, $current_view;
21 21
 
22
-$tab_exists    = isset( $tabs[ $current_view ] ) || has_action( 'auto_load_next_post_sections_' . $current_view ) || has_action( 'auto_load_next_post_settings_' . $current_view ) || has_action( 'auto_load_next_post_settings_tabs_' . $current_view );
23
-$current_label = isset( $tabs[ $current_view ] ) ? $tabs[ $current_view ] : '';
22
+$tab_exists    = isset($tabs[$current_view]) || has_action('auto_load_next_post_sections_'.$current_view) || has_action('auto_load_next_post_settings_'.$current_view) || has_action('auto_load_next_post_settings_tabs_'.$current_view);
23
+$current_label = isset($tabs[$current_view]) ? $tabs[$current_view] : '';
24 24
 
25
-if ( ! $tab_exists ) {
26
-	wp_safe_redirect( admin_url( 'options-general.php?page=auto-load-next-post' ) );
25
+if ( ! $tab_exists) {
26
+	wp_safe_redirect(admin_url('options-general.php?page=auto-load-next-post'));
27 27
 	exit;
28 28
 }
29 29
 ?>
@@ -31,24 +31,24 @@  discard block
 block discarded – undo
31 31
 	<form method="post" id="mainform" action="" enctype="multipart/form-data">
32 32
 		<?php
33 33
 		// Include settings tabs.
34
-		include_once( dirname( __FILE__ ) . '/html-admin-tabs.php' ); ?>
34
+		include_once(dirname(__FILE__).'/html-admin-tabs.php'); ?>
35 35
 
36
-		<h1 class="screen-reader-text"><?php echo esc_html( $current_label ); ?></h1>
36
+		<h1 class="screen-reader-text"><?php echo esc_html($current_label); ?></h1>
37 37
 
38 38
 		<?php
39
-		do_action( 'auto_load_next_post_sections_' . $current_view );
39
+		do_action('auto_load_next_post_sections_'.$current_view);
40 40
 
41 41
 		self::show_messages();
42 42
 
43
-		do_action( 'auto_load_next_post_settings_' . $current_view );
43
+		do_action('auto_load_next_post_settings_'.$current_view);
44 44
 		?>
45 45
 		<p class="submit">
46
-			<?php submit_button( esc_attr__( 'Save Changes', 'auto-load-next-post' ), 'button-primary', esc_attr__( 'Save Changes', 'auto-load-next-post' ), false, array( 'id' => 'save' ) ); ?>
47
-			<?php wp_nonce_field( 'auto-load-next-post-settings' ); ?>
46
+			<?php submit_button(esc_attr__('Save Changes', 'auto-load-next-post'), 'button-primary', esc_attr__('Save Changes', 'auto-load-next-post'), false, array('id' => 'save')); ?>
47
+			<?php wp_nonce_field('auto-load-next-post-settings'); ?>
48 48
 		</p>
49 49
 	</form>
50 50
 
51 51
 	<div class="alnp-sidebar">
52
-		<?php do_action( 'auto_load_next_post_sidebar', $current_view ); ?>
52
+		<?php do_action('auto_load_next_post_sidebar', $current_view); ?>
53 53
 	</div>
54 54
 </div>
Please login to merge, or discard this patch.
includes/admin/views/html-notice-requirement-wp.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( __( 'Sorry, %1$s%3$s%2$s requires WordPress %4$s or higher. Please upgrade your WordPress setup.', 'auto-load-next-post' ), '<strong>', '</strong>', esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), AUTO_LOAD_NEXT_POST_WP_VERSION_REQUIRE ); ?></p>
19
+	<p><?php echo sprintf(__('Sorry, %1$s%3$s%2$s requires WordPress %4$s or higher. Please upgrade your WordPress setup.', 'auto-load-next-post'), '<strong>', '</strong>', esc_html__('Auto Load Next Post', 'auto-load-next-post'), AUTO_LOAD_NEXT_POST_WP_VERSION_REQUIRE); ?></p>
20 20
 </div>
Please login to merge, or discard this patch.
includes/admin/views/html-notice-jetpack-lazy-images-module.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 jetpack-info">
19
-	<p><?php echo sprintf( esc_attr__( 'Lazy-loading for the Images module is enabled in %1$sJetPack%2$s. To trigger the lazy loading event apply %3$s to %4$s%5$s%6$s.', 'auto-load-next-post' ), '<a href="' . admin_url( 'admin.php?page=jetpack#/performance' ) . '">', '</a>', '<code>jetpack-lazy-images-load</code>', '<strong>', __( 'Entering a Post', 'auto-load-next-post'), '</strong>' ); ?></p>
19
+	<p><?php echo sprintf(esc_attr__('Lazy-loading for the Images module is enabled in %1$sJetPack%2$s. To trigger the lazy loading event apply %3$s to %4$s%5$s%6$s.', 'auto-load-next-post'), '<a href="'.admin_url('admin.php?page=jetpack#/performance').'">', '</a>', '<code>jetpack-lazy-images-load</code>', '<strong>', __('Entering a Post', 'auto-load-next-post'), '</strong>'); ?></p>
20 20
 </div>
Please login to merge, or discard this patch.
includes/admin/views/html-notice-plugin-supported.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@
 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
 $active_theme = wp_get_theme();
19 19
 ?>
20 20
 <div class="notice notice-info">
21
-	<p><?php echo sprintf( __( 'Your active theme %s, is supported via a plugin. Changes to set theme selectors are disabled.', 'auto-load-next-post' ), $active_theme->name ); ?></p>
21
+	<p><?php echo sprintf(__('Your active theme %s, is supported via a plugin. Changes to set theme selectors are disabled.', 'auto-load-next-post'), $active_theme->name); ?></p>
22 22
 </div>
Please login to merge, or discard this patch.
includes/admin/views/html-notice-setup-wizard.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  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
 
@@ -19,17 +19,17 @@  discard block
 block discarded – undo
19 19
 <div class="notice notice-info auto-load-next-post-notice">
20 20
 	<div class="auto-load-next-post-notice-inner">
21 21
 		<div class="auto-load-next-post-notice-icon">
22
-			<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
+			<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'); ?>" />
23 23
 		</div>
24 24
 
25 25
 		<div class="auto-load-next-post-notice-content">
26
-			<h3><?php printf( esc_html__( 'Hi %s.', 'auto-load-next-post' ), $current_user->display_name ); ?></h3>
27
-			<p><?php printf( esc_html__( 'Try the Setup Wizard to help identify your theme selectors and template location. Once done %s will be ready!', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ); ?></p>
26
+			<h3><?php printf(esc_html__('Hi %s.', 'auto-load-next-post'), $current_user->display_name); ?></h3>
27
+			<p><?php printf(esc_html__('Try the Setup Wizard to help identify your theme selectors and template location. Once done %s will be ready!', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post')); ?></p>
28 28
 		</div>
29 29
 
30 30
 		<div class="auto-load-next-post-setup-wizard">
31
-			<?php printf( '<a href="%1$s" class="button button-primary auto-load-next-post-setup-button">%2$s</a>', add_query_arg( array( 'page' => 'auto-load-next-post', 'view' => 'setup-wizard' ), admin_url( 'options-general.php' ) ), esc_html__( 'Run the Setup Wizard', 'auto-load-next-post' ) ); ?>
32
-			<a href="<?php echo esc_url( add_query_arg( 'hide_auto_load_next_post_setup_notice', 'true' ) ); ?>" class="no-thanks"><?php echo esc_html__( 'No need / I already have', 'auto-load-next-post' ); ?></a>
31
+			<?php printf('<a href="%1$s" class="button button-primary auto-load-next-post-setup-button">%2$s</a>', add_query_arg(array('page' => 'auto-load-next-post', 'view' => 'setup-wizard'), admin_url('options-general.php')), esc_html__('Run the Setup Wizard', 'auto-load-next-post')); ?>
32
+			<a href="<?php echo esc_url(add_query_arg('hide_auto_load_next_post_setup_notice', 'true')); ?>" class="no-thanks"><?php echo esc_html__('No need / I already have', 'auto-load-next-post'); ?></a>
33 33
 		</div>
34 34
 	</div>
35 35
 </div>
Please login to merge, or discard this patch.