Make WordPress Core


Ignore:
Timestamp:
12/10/2015 03:05:34 AM (10 years ago)
Author:
johnbillion
Message:

Comments: The year is 2003. Permalinks are a new thing and everyone's using Blogger. It's a time when opening a modal window in JavaScript to view a section of a website is not a completely weird thing, although many users get annoyed by it. b2 has recently become WordPress, and with it comes a bunch of functionality that will become stale over the next decade, remnants of simpler times.

Twelve years later, after no fewer than three themes have intentionally implemented popup comments in their functionality, before being abandoned for at least the last six years, we've reached a time where we can put this era behind us. A time when we can remove comment popup functionality from WordPress.

If this breaks the internet, I'll eat my hat.

Fixes #28617

File:
1 edited

Legend:

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

    r35413 r35848  
    467467
    468468/**
    469  * Retrieve path of comment popup template in current or parent template.
    470  *
    471  * Checks for comment popup template in current template, if it exists or in the
    472  * parent template.
    473  *
    474  * The template path is filterable via the dynamic {@see '$type_template'} hook,
    475  * e.g. 'commentspopup_template'.
    476  *
    477  * @since 1.5.0
    478  *
    479  * @see get_query_template()
    480  *
    481  * @return string Full path to comments popup template file.
    482  */
    483 function get_comments_popup_template() {
    484     $template = get_query_template( 'comments_popup', array( 'comments-popup.php' ) );
    485 
    486     // Backward compat code will be removed in a future release.
    487     if ('' == $template)
    488         $template = ABSPATH . WPINC . '/theme-compat/comments-popup.php';
    489 
    490     return $template;
    491 }
    492 
    493 /**
    494469 * Retrieve the name of the highest priority template file that exists.
    495470 *
Note: See TracChangeset for help on using the changeset viewer.