WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/10/2015 03:05:34 AM (5 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/deprecated.php

    r35624 r35848  
    36363636    return force_ssl_admin( $force );
    36373637}
     3638
     3639/**
     3640 * Retrieve path of comment popup template in current or parent template.
     3641 *
     3642 * @since 1.5.0
     3643 * @deprecated 4.5.0
     3644 *
     3645 * @return string Full path to comments popup template file.
     3646 */
     3647function get_comments_popup_template() {
     3648    _deprecated_function( __FUNCTION__, '4.5' );
     3649
     3650    return '';
     3651}
     3652
     3653/**
     3654 * Whether the current URL is within the comments popup window.
     3655 *
     3656 * @since 1.5.0
     3657 * @deprecated 4.5.0
     3658 *
     3659 * @return bool
     3660 */
     3661function is_comments_popup() {
     3662    _deprecated_function( __FUNCTION__, '4.5' );
     3663
     3664    return false;
     3665}
     3666
     3667/**
     3668 * Display the JS popup script to show a comment.
     3669 *
     3670 * @since 0.71
     3671 * @deprecated 4.5.0
     3672 */
     3673function comments_popup_script() {
     3674    _deprecated_function( __FUNCTION__, '4.5' );
     3675}
     3676
     3677/**
     3678 * Adds element attributes to open links in new windows.
     3679 *
     3680 * @since 0.71
     3681 * @deprecated 4.5.0
     3682 *
     3683 * @param string $text Content to replace links to open in a new window.
     3684 * @return string Content that has filtered links.
     3685 */
     3686function popuplinks( $text ) {
     3687    _deprecated_function( __FUNCTION__, '4.5' );
     3688    $text = preg_replace('/<a (.+?)>/i', "<a $1 target='_blank' rel='external'>", $text);
     3689    return $text;
     3690}
Note: See TracChangeset for help on using the changeset viewer.