Make WordPress Core


Ignore:
Timestamp:
09/09/2015 02:50:43 AM (9 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r33925 r33963  
    38453845     * @since 2.2.0
    38463846     * @access public
    3847      * @global object $comment Current comment.
     3847     * @global WP_Comment $comment Current comment.
    38483848     */
    38493849    public function the_comment() {
Note: See TracChangeset for help on using the changeset viewer.