: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Render additional information below the text area on the ad edit page
* currently "plain text" and "rich content" ad types
* @package Advanced_Ads_Admin
* @author Thomas Maier <support@wpadvancedads.com>
* @link https://wpadvancedads.com
* @copyright since 2013 Thomas Maier, Advanced Ads GmbH
if ( defined( 'WP_DEBUG' ) && WP_DEBUG &&
( $error = Advanced_Ads_Admin_Ad_Type::check_ad_dom_is_not_valid( $ad ) ) ) : ?>
<p class="advads-notice-inline advads-error">
esc_html_e( 'The code of this ad might not work properly with the Content placement.', 'advanced-ads' );
// translators: %s is a URL.
__( 'Reach out to <a href="%s">support</a> to get help.', 'advanced-ads' ),
esc_url( admin_url( 'admin.php?page=advanced-ads-settings#top#support' ) )
if ( true === WP_DEBUG ) :
<span style="white-space:pre-wrap"><?php echo $error; ?></span>
do_action( 'advanced-ads-ad-params-below-textarea', $ad );