Make WordPress Core


Ignore:
Timestamp:
07/29/2015 06:35:40 PM (9 years ago)
Author:
ocean90
Message:

Themes: Remove legacy theme preview.

The pre-3.4 theme previewer doesn't work when using a static front page.
We kept the old theme preview for no-JS and some browsers that were less capable. But since browsers are doing a better job today we don't need to continue fixing/shipping this legacy code. Bye!

fixes #33178.

File:
1 edited

Legend:

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

    r32964 r33492  
    34943494
    34953495/**
     3496 * Start preview theme output buffer.
     3497 *
     3498 * Will only perform task if the user has permissions and template and preview
     3499 * query variables exist.
     3500 *
     3501 * @since 2.6.0
     3502 * @deprecated 4.3.0
     3503 */
     3504function preview_theme() {
     3505    _deprecated_function( __FUNCTION__, '4.3' );
     3506}
     3507
     3508/**
     3509 * Private function to modify the current template when previewing a theme
     3510 *
     3511 * @since 2.9.0
     3512 * @deprecated 4.3.0
     3513 * @access private
     3514 *
     3515 * @return string
     3516 */
     3517function _preview_theme_template_filter() {
     3518    _deprecated_function( __FUNCTION__, '4.3' );
     3519    return '';
     3520}
     3521
     3522/**
     3523 * Private function to modify the current stylesheet when previewing a theme
     3524 *
     3525 * @since 2.9.0
     3526 * @deprecated 4.3.0
     3527 * @access private
     3528 *
     3529 * @return string
     3530 */
     3531function _preview_theme_stylesheet_filter() {
     3532    _deprecated_function( __FUNCTION__, '4.3' );
     3533    return '';
     3534}
     3535
     3536/**
     3537 * Callback function for ob_start() to capture all links in the theme.
     3538 *
     3539 * @since 2.6.0
     3540 * @deprecated 4.3.0
     3541 * @access private
     3542 *
     3543 * @param string $content
     3544 * @return string
     3545 */
     3546function preview_theme_ob_filter( $content ) {
     3547    _deprecated_function( __FUNCTION__, '4.3' );
     3548    return $content;
     3549}
     3550
     3551/**
     3552 * Manipulates preview theme links in order to control and maintain location.
     3553 *
     3554 * Callback function for preg_replace_callback() to accept and filter matches.
     3555 *
     3556 * @since 2.6.0
     3557 * @deprecated 4.3.0
     3558 * @access private
     3559 *
     3560 * @param array $matches
     3561 * @return string
     3562 */
     3563function preview_theme_ob_filter_callback( $matches ) {
     3564    _deprecated_function( __FUNCTION__, '4.3' );
     3565    return '';
     3566}
     3567
     3568/**
    34963569 * Formats text for the rich text editor.
    34973570 *
Note: See TracChangeset for help on using the changeset viewer.