mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@33492 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3492,6 +3492,79 @@ function url_is_accessable_via_ssl( $url ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Start preview theme output buffer.
|
||||
*
|
||||
* Will only perform task if the user has permissions and template and preview
|
||||
* query variables exist.
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @deprecated 4.3.0
|
||||
*/
|
||||
function preview_theme() {
|
||||
_deprecated_function( __FUNCTION__, '4.3' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Private function to modify the current template when previewing a theme
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @deprecated 4.3.0
|
||||
* @access private
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function _preview_theme_template_filter() {
|
||||
_deprecated_function( __FUNCTION__, '4.3' );
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Private function to modify the current stylesheet when previewing a theme
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @deprecated 4.3.0
|
||||
* @access private
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function _preview_theme_stylesheet_filter() {
|
||||
_deprecated_function( __FUNCTION__, '4.3' );
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback function for ob_start() to capture all links in the theme.
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @deprecated 4.3.0
|
||||
* @access private
|
||||
*
|
||||
* @param string $content
|
||||
* @return string
|
||||
*/
|
||||
function preview_theme_ob_filter( $content ) {
|
||||
_deprecated_function( __FUNCTION__, '4.3' );
|
||||
return $content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Manipulates preview theme links in order to control and maintain location.
|
||||
*
|
||||
* Callback function for preg_replace_callback() to accept and filter matches.
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @deprecated 4.3.0
|
||||
* @access private
|
||||
*
|
||||
* @param array $matches
|
||||
* @return string
|
||||
*/
|
||||
function preview_theme_ob_filter_callback( $matches ) {
|
||||
_deprecated_function( __FUNCTION__, '4.3' );
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Formats text for the rich text editor.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user