PluginProbe
Advanced Ads – Ad Manager & AdSense / 2.0.22
Advanced Ads – Ad Manager & AdSense v2.0.22
2.0.26 2.0.25 2.0.24 2.0.23 2.0.22 2.0.21 1.38.0 1.39.0 1.39.1 1.39.2 1.39.3 1.39.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.40.0 1.40.1 1.40.2 All 348 releases
advanced-ads / admin / views / checks.php
checks.php
41 lines 884 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * A couple of checks to see if there is any critical issue
4 * listed on support and settings page
5 *
6 * @package AdvancedAds
7 * @author Advanced Ads <info@wpadvancedads.com>
8 * @since 1.48.2
9 */
10
11 $messages = [];
12
13 if ( Advanced_Ads_Ad_Health_Notices::has_visible_problems() ) {
14 $messages[] = sprintf(
15 /* translators: %1$s is a starting link tag, %2$s is closing the link tag. */
16 esc_attr__( 'You have unread Advanced Ads notifications. %1$sShow me these notifications%2$s', 'advanced-ads' ),
17 '<a href="' . admin_url( 'admin.php?page=advanced-ads' ) . '">',
18 '</a>'
19 );
20 }
21
22 $messages = apply_filters( 'advanced-ads-support-messages', $messages );
23
24 if ( count( $messages ) ) :
25 ?><div class="message error">
26 <?php
27 foreach ( $messages as $_message ) :
28 ?>
29 <p>
30 <?php
31 // phpcs:ignore
32 echo $_message;
33 ?>
34 </p>
35 <?php
36 endforeach;
37 ?>
38 </div>
39 <?php
40 endif;
41