After [33891], get_comment() returns global $comment if no args are passed and the global is set (after setting the default to null here). This allows us to ditch global comment imports.

See #33638.


git-svn-id: https://develop.svn.wordpress.org/trunk@33963 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-09 02:50:43 +00:00
parent 8088ffafd6
commit 38d374ab01
5 changed files with 9 additions and 22 deletions

View File

@@ -3844,7 +3844,7 @@ class WP_Query {
*
* @since 2.2.0
* @access public
* @global object $comment Current comment.
* @global WP_Comment $comment Current comment.
*/
public function the_comment() {
global $comment;