WordPress.org

Ready to get started?Download WordPress

Forums

Media Tags
2 errors after upgrade (2 posts)

  1. jdantzer
    Member
    Posted 3 years ago #

    when calling: is_mediatag()
    Notice: Undefined property: WP_Query::$is_mediatags in /wp-content/plugins/media-tags/mediatags_template_functions.php on line 6

    when I print out the $wp_query object i see that '[is_mediatags] => 1' in the query_vars array.

    as a temp fix i changed:
    if ($wp_query->is_mediatags == true)
    to
    if ($wp_query->query_vars['is_mediatags'] == 1)
    around line 5 of mediatags_template_functions.php

    when calling: single_mediatag_title()
    Notice: Undefined variable: wp_version in /wp-content/plugins/media-tags/mediatags_template_functions.php on line 135

    to fix this i added 'global $wp_version;' to the function around line 132 of mediatags_template_functions.php

    plugin version: 3.0.1

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

  2. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    jdantzer thanks for the fix suggestions. I have a few other changes from other users I hope to have incorporated into the next patch.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags