• Plugin Author switzer

    (@switzer)


    Hi – the most recent WordPress update (4.0.1) introduced a feature(?) which is character encoding the post before Advertising Manager has a chance to convert the ad codes in the post to an actual ad.

    This change affected many plugins, and WordPress’ feedback is to “use shortcodes instead of parsing the post yourself”. Advertising Manager was originally built before there was a concept of shortcodes (e.g WordPress’ method of informing plugins that they can change post content).

    The good news is that WordPress shortcodes make it simple for Advertising Manager to replace the codes with an ad.

    The bad news is that upgrading existing codes is (in my view) potentially dangerous. If Advertising Manager were to automatically upgrade everyone’s ad tags in their posts, it would do is loop through all posts, pages, archives, etc., unencode the content, transform the ad code, re-encode the content, and then save the page.

    This means that the page update date will change, and while this upgrade “works for me”, it may not work for everyone’s template encoding type. Getting this wrong means that a blog with hundreds or thousands of posts may have a character that is not encoded correctly (and may show up like “Scott?s Blog”).

    There are WordPress plugins that you can use to automate changing ad codes in your posts in a much safer fashion, like:
    https://ww.wp.xz.cn/plugins/search-and-replace/

    I am going to release the new version without an automatic upgrade, and leave instructions on how to do this yourself.

    If you have any feedback about this, please respond to this post.

    https://ww.wp.xz.cn/plugins/advertising-manager/

The topic ‘Ad Tag in Posts’ is closed to new replies.