3
3
* Auto Load Next Post - Admin.
4
4
*
5
5
* @since 1.0.0
6
- * @version 1.5.5
6
+ * @version 1.5.7
7
7
* @author Sébastien Dumont
8
8
* @category Admin
9
9
* @package Auto Load Next Post/Admin
@@ -24,7 +24,7 @@ class Auto_Load_Next_Post_Admin {
24
24
*
25
25
* @access public
26
26
* @since 1.0.0
27
- * @version 1.4.10
27
+ * @version 1.5.7
28
28
*/
29
29
public function __construct () {
30
30
// Include classes.
@@ -40,10 +40,10 @@ public function __construct() {
40
40
// Add settings page.
41
41
add_action ( 'admin_menu ' , array ( $ this , 'admin_menu ' ), 9 );
42
42
43
- // Filters
43
+ // Filters plugin row and admin footer.
44
44
add_filter ( 'plugin_action_links_ ' . plugin_basename ( AUTO_LOAD_NEXT_POST_FILE ), array ( $ this , 'plugin_action_links ' ) );
45
45
add_filter ( 'plugin_row_meta ' , array ( $ this , 'plugin_row_meta ' ), 10 , 3 );
46
- add_filter ( 'admin_footer_text ' , array ( $ this , 'admin_footer_text ' ) );
46
+ add_filter ( 'admin_footer_text ' , array ( $ this , 'admin_footer_text ' ), 15 , 1 );
47
47
add_filter ( 'update_footer ' , array ( $ this , 'update_footer ' ), 15 );
48
48
} // END __construct()
49
49
@@ -279,20 +279,20 @@ public function plugin_row_meta( $links, $file, $data ) {
279
279
*
280
280
* @access public
281
281
* @since 1.0.0
282
- * @version 1.4.10
283
- * @param string $text
282
+ * @version 1.5.7
283
+ * @param string $text text to be rendered in the footer.
284
284
* @return string $text
285
285
*/
286
286
public function admin_footer_text ( $ text ) {
287
287
$ current_screen = get_current_screen ();
288
288
289
289
if ( isset ( $ current_screen ->id ) && $ current_screen ->id == 'settings_page_auto-load-next-post-settings ' ) {
290
290
// Rating and Review
291
- return sprintf (
291
+ $ text = sprintf (
292
292
/* translators: 1: Auto Load Next Post 2:: five stars */
293
293
__ ( 'If you like %1$s, please leave a %2$s rating. A huge thank you in advance! ' , 'auto-load-next-post ' ),
294
294
sprintf ( '<strong>%1$s</strong> ' , esc_html__ ( 'Auto Load Next Post ' , 'auto-load-next-post ' ) ),
295
- '<a href=" ' . AUTO_LOAD_NEXT_POST_REVIEW_URL . '?rate=5#new-post" target="_blank" data-rated=" ' . esc_attr__ ( 'Thanks :) ' , 'auto-load-next-post ' ) . '">★★★★★</a> '
295
+ '<a href=" ' . AUTO_LOAD_NEXT_POST_REVIEW_URL . '?rate=5#new-post" target="_blank" aria-label=" ' . esc_attr__ ( ' five star ' , ' auto-load-next-post ' ) . ' " data-rated=" ' . esc_attr__ ( 'Thanks :) ' , 'auto-load-next-post ' ) . '">★★★★★</a> '
296
296
);
297
297
}
298
298
0 commit comments