Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

Bug: Tries to Instantiate stdClass in Namespace

$
0
0

Replies: 0

In Util_PageUrls.php line 527, it tries to instantiate stdClass without making the reference global, as this file specifies a namespace.

$GLOBALS['post'] = new stdClass();

Results in fatal error when anyone posts a comment.

Should instead be:

$GLOBALS['post'] = new \stdClass();

This error only came up when I enabled purging the comment page when a comment is posted.


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>