Upgrade to 2.0.0 causes error
-
Hello,
great plugin, but an upgrade to version 2.0.0 causes an error on my site because the global variable $wp_query is none in another plugin. I get this PHP notice:
Notice: Trying to get property 'post_title' of non-object in /wp-content/plugins/myplugin/hello.php on line 18
On line 18 in myplugin there is the following code:
17. global $wp_query; 18. $post_title = $wp_query->post->post_title;
Rolling back Social Link Pages to 0.1.18 makes the site work again.
Best
Cls
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Upgrade to 2.0.0 causes error’ is closed to new replies.