Support » Plugin: Media Tags » [Plugin: Media Tags] Creating default object for thirdparty property

  • Hi,

    I normally have PHP notices turnd on during development and getting the following notice for version 3.0.5 that I was hoping you could fix in the codebase:

    Warning: Creating default object from empty value in /var/www/vhosts/pinholepress.local/public/wp-content/plugins/media-tags/media_tags.php on line 42

    I think you are using the thirdparty property as a simple container. If so, then something like the following patch should fix it:

    --- a/wp-content/plugins/media-tags/media_tags.php
    +++ b/wp-content/plugins/media-tags/media_tags.php
    @@ -39,6 +39,7 @@ class MediaTags {
    
            // Setup flags for third-party plugins we can integrate with
    +       $this->thirdparty = new stdClass();
            $this->thirdparty->google_sitemap       = false;
            $this->default_caps                     = array();
    --

    Thanks!

    http://wordpress.org/extend/plugins/media-tags/

  • The topic ‘[Plugin: Media Tags] Creating default object for thirdparty property’ is closed to new replies.