mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-16 18:44:32 +00:00
General: Remove Windows Live Writer manifest file.
The XML manifest was originally added in WordPress 2.3.1 to turn on tagging support in Windows Live Writer. Given that the last major release of the software came out in 2012, and it was completely discontinued in January 2017, including this file in core no longer provides any benefit. Follow-up to [6192], [49904]. Props joostdevalk, ayeshrajans, flixos90, jhabdas, frank-klein, wtranch, SergeyBiryukov. Fixes #41404. git-svn-id: https://develop.svn.wordpress.org/trunk@55620 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -196,39 +196,11 @@ class Tests_HTTPS_Detection extends WP_UnitTestCase {
|
||||
$this->assertFalse( wp_is_local_html_output( $html ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 47577
|
||||
*/
|
||||
public function test_wp_is_local_html_output_via_wlwmanifest_link() {
|
||||
remove_action( 'wp_head', 'rsd_link' );
|
||||
|
||||
// HTML includes WLW manifest link.
|
||||
$head_tag = get_echo( 'wlwmanifest_link' );
|
||||
$html = $this->get_sample_html_string( $head_tag );
|
||||
$this->assertTrue( wp_is_local_html_output( $html ) );
|
||||
|
||||
// HTML includes modified WLW manifest link but same URL.
|
||||
$head_tag = str_replace( ' />', '>', get_echo( 'wlwmanifest_link' ) );
|
||||
$html = $this->get_sample_html_string( $head_tag );
|
||||
$this->assertTrue( wp_is_local_html_output( $html ) );
|
||||
|
||||
// HTML includes WLW manifest link with alternative URL scheme.
|
||||
$head_tag = get_echo( 'wlwmanifest_link' );
|
||||
$head_tag = false !== strpos( $head_tag, 'https://' ) ? str_replace( 'https://', 'http://', $head_tag ) : str_replace( 'http://', 'https://', $head_tag );
|
||||
$html = $this->get_sample_html_string( $head_tag );
|
||||
$this->assertTrue( wp_is_local_html_output( $html ) );
|
||||
|
||||
// HTML does not include WLW manifest link.
|
||||
$html = $this->get_sample_html_string();
|
||||
$this->assertFalse( wp_is_local_html_output( $html ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 47577
|
||||
*/
|
||||
public function test_wp_is_local_html_output_via_rest_link() {
|
||||
remove_action( 'wp_head', 'rsd_link' );
|
||||
remove_action( 'wp_head', 'wlwmanifest_link' );
|
||||
|
||||
// HTML includes REST API link.
|
||||
$head_tag = get_echo( 'rest_output_link_wp_head' );
|
||||
@@ -256,7 +228,6 @@ class Tests_HTTPS_Detection extends WP_UnitTestCase {
|
||||
*/
|
||||
public function test_wp_is_local_html_output_cannot_determine() {
|
||||
remove_action( 'wp_head', 'rsd_link' );
|
||||
remove_action( 'wp_head', 'wlwmanifest_link' );
|
||||
remove_action( 'wp_head', 'rest_output_link_wp_head' );
|
||||
|
||||
// The HTML here doesn't matter because all hooks are removed.
|
||||
|
||||
Reference in New Issue
Block a user