[Plugin: Media Tags] 2 errors after upgrade
-
when calling: is_mediatag()
Notice: Undefined property: WP_Query::$is_mediatags in /wp-content/plugins/media-tags/mediatags_template_functions.php on line 6when 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.phpwhen calling: single_mediatag_title()
Notice: Undefined variable: wp_version in /wp-content/plugins/media-tags/mediatags_template_functions.php on line 135to fix this i added ‘global $wp_version;’ to the function around line 132 of mediatags_template_functions.php
plugin version: 3.0.1
- The topic ‘[Plugin: Media Tags] 2 errors after upgrade’ is closed to new replies.