WordPress.org

Forums

Media Tags
Creating default object for thirdparty property (1 post)

  1. mohawkggo
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags