get_comments_popup_template

The timeline below displays how wordpress function get_comments_popup_template has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.6

/**
 * Retrieve path of comment popup template in current or parent template.
 *
 * @since 1.5.0
 * @deprecated 4.5.0
 *
 * @return string Full path to comments popup template file.
 */
function get_comments_popup_template()
{
    _deprecated_function(__FUNCTION__, '4.5.0');
    return '';
}

WordPress Version: 4.5

/**
 * Retrieve path of comment popup template in current or parent template.
 *
 * @since 1.5.0
 * @deprecated 4.5.0
 *
 * @return string Full path to comments popup template file.
 */
function get_comments_popup_template()
{
    _deprecated_function(__FUNCTION__, '4.5');
    return '';
}

WordPress Version: 4.3

/**
 * Retrieve path of comment popup template in current or parent template.
 *
 * Checks for comment popup template in current template, if it exists or in the
 * parent template.
 *
 * The template path is filterable via the dynamic {@see '$type_template'} hook,
 * e.g. 'commentspopup_template'.
 *
 * @since 1.5.0
 *
 * @see get_query_template()
 *
 * @return string Full path to comments popup template file.
 */
function get_comments_popup_template()
{
    $template = get_query_template('comments_popup', array('comments-popup.php'));
    // Backward compat code will be removed in a future release.
    if ('' == $template) {
        $template = ABSPATH . WPINC . '/theme-compat/comments-popup.php';
    }
    return $template;
}

WordPress Version: 3.9

/**
 * Retrieve path of comment popup template in current or parent template.
 *
 * Checks for comment popup template in current template, if it exists or in the
 * parent template.
 *
 * The template path is filterable via the 'comments_popup_template' hook.
 *
 * @since 1.5.0
 *
 * @see get_query_template()
 *
 * @return string Full path to comments popup template file.
 */
function get_comments_popup_template()
{
    $template = get_query_template('comments_popup', array('comments-popup.php'));
    // Backward compat code will be removed in a future release
    if ('' == $template) {
        $template = ABSPATH . WPINC . '/theme-compat/comments-popup.php';
    }
    return $template;
}

WordPress Version: 3.7

/**
 * Retrieve path of comment popup template in current or parent template.
 *
 * Checks for comment popup template in current template, if it exists or in the
 * parent template.
 *
 * @since 1.5.0
 * @uses apply_filters() Calls 'comments_popup_template' filter on path.
 *
 * @return string
 */
function get_comments_popup_template()
{
    $template = get_query_template('comments_popup', array('comments-popup.php'));
    // Backward compat code will be removed in a future release
    if ('' == $template) {
        $template = ABSPATH . WPINC . '/theme-compat/comments-popup.php';
    }
    return $template;
}