Skip to content

Commit 8de5249

Browse files
committed
minor tweaks
1 parent c0baaf1 commit 8de5249

4 files changed

Lines changed: 9 additions & 15 deletions

File tree

classes/suggested-tasks/providers/class-blog-description.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ public function should_add_task() {
9191
* @return void
9292
*/
9393
public function print_popover_instructions() {
94-
?>
95-
<p><?php \esc_html_e( 'In a few words, explain what this site is about. This information is used in your website\'s schema and RSS feeds, and can be displayed on your site. The tagline typically is your site\'s mission statement.', 'progress-planner' ); ?></p>
96-
<?php
94+
echo '<p>';
95+
\esc_html_e( 'In a few words, explain what this site is about. This information is used in your website\'s schema and RSS feeds, and can be displayed on your site. The tagline typically is your site\'s mission statement.', 'progress-planner' );
96+
echo '</p>';
9797
}
9898

9999
/**

classes/suggested-tasks/providers/class-disable-comment-pagination.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,14 @@ public function is_task_completed( $task_id = '' ) {
104104
* @return void
105105
*/
106106
public function print_popover_instructions() {
107-
?>
108-
<p>
109-
<?php
107+
echo '<p>';
110108
\printf(
111109
/* translators: %d is the number of comments per page, %s is the "recommend to disable comment pagination" link */
112110
\esc_html__( 'When comment pagination is enabled, your site creates a new page for every %1$d comments. This is not helping your website in search engines, and can break up the ongoing conversation. That\'s why we %2$s.', 'progress-planner' ),
113111
(int) \get_option( 'comments_per_page' ),
114112
'<a href="https://prpl.fyi/disable-comment-pagination" target="_blank">' . \esc_html__( 'recommend to disable comment pagination', 'progress-planner' ) . '</a>'
115113
);
116-
?>
117-
</p>
118-
<?php
114+
echo '</p>';
119115
}
120116

121117
/**

classes/suggested-tasks/providers/class-select-timezone.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public function should_add_task() {
9494
* @return void
9595
*/
9696
public function print_popover_instructions() {
97-
?>
98-
<p><?php \esc_html_e( 'Set site timezone to ensure scheduled posts and pages are published at desired time.', 'progress-planner' ); ?></p>
99-
<?php
97+
echo '<p>';
98+
\esc_html_e( 'Set site timezone to ensure scheduled posts and pages are published at desired time.', 'progress-planner' );
99+
echo '</p>';
100100
}
101101

102102
/**

classes/suggested-tasks/providers/class-tasks-interactive.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ public function the_popover_content() {
136136
* @return void
137137
*/
138138
public function print_popover_instructions() {
139-
?>
140-
<p><?php echo \wp_kses_post( $this->get_description() ); ?></p>
141-
<?php
139+
echo '<p>' . \wp_kses_post( $this->get_description() ) . '</p>';
142140
}
143141

144142
/**

0 commit comments

Comments
 (0)