: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<?xml version="1.0" encoding="UTF-8"?>
<item key="0" type="array">
<post_content type="string">
<![CDATA[<div style="width: 100%; height: 90px; background: #15A2E1; color: #fff; line-height: 90px; text-align: center; ">Example Ad #1 (only visible for logged-in visitors)</div>]]></post_content>
<post_title type="string">Example Ad #1 (only for logged-in visitors)</post_title>
<post_status type="string">publish</post_status>
<meta_input type="array">
<advanced_ads_ad_options type="array">
<item key="0" type="array">
<type type="string">loggedin</type>
<operator type="string">is</operator>
<allow_php type="string">0</allow_php>
<type type="string">plain</type>
<width type="numeric">0</width>
<height type="numeric">0</height>
</advanced_ads_ad_options>
<item key="1" type="array">
<post_content type="string">
<![CDATA[<div style="width: 100%; height: 90px; background: #04B404; color: #fff; line-height: 90px; text-align: center; ">Example Ad #2 (only visible for logged-in visitors)</div>]]></post_content>
<post_title type="string">Example Ad #2 (only for logged-in visitors)</post_title>
<post_status type="string">publish</post_status>
<meta_input type="array">
<advanced_ads_ad_options type="array">
<item key="0" type="array">
<type type="string">loggedin</type>
<operator type="string">is</operator>
<allow_php type="string">0</allow_php>
<type type="string">plain</type>
<width type="numeric">0</width>
<height type="numeric">0</height>
</advanced_ads_ad_options>
<placements type="array">
<item key="0" type="array">
<type type="string">post_top</type>
<name type="string">Before Content Placement</name>
<item type="string">ad_1</item>
<key type="string">before-content-placement</key>
<item key="1" type="array">
<type type="string">post_content</type>
<name type="string">Content Placement after 3rd Paragraph</name>
<item type="string">ad_2</item>
<position type="string">after</position>
<index type="numeric">3</index>
<tag type="string">p</tag>
<ad_label type="string">default</ad_label>
<placement_position type="string"/>
<key type="string">content-placement-after-3rd-paragraph</key>