mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Administration: Change default site tagline to an empty string.
This changeset replaces the default "Just another WordPress site" tagline with an empty string for new installations. The reasoning is:
1. Not all themes display the tagline;
2. Not everyone changes the default tagline;
3. When people don't see the tagline in their theme, they may not realize it is still visible in some places, like feeds.
The string "Just another WordPress site" and the related multisite string: "Just another {NETWORK} site" are now only used as a placeholder for the tagline admin option.
Props markjaquith, Denis-de-Bernardy, westi, RyanMurphy, kovshenin, SergeyBiryukov, chriscct7, tyxla, hyperbrand, karmatosed, lukecavanagh, melchoyce, boemedia, khag7, sabernhardt, audrasjb, peterwilsoncc, costdev, martinkrcho, rafiahmedd.
Fixes #6479.
git-svn-id: https://develop.svn.wordpress.org/trunk@53815 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -51,6 +51,9 @@ class Tests_Feed_Atom extends WP_UnitTestCase {
|
||||
wp_set_object_terms( $post, self::$category->slug, 'category' );
|
||||
}
|
||||
|
||||
// Assign a tagline option.
|
||||
update_option( 'blogdescription', 'Just another WordPress site' );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,6 +66,13 @@ class Tests_Feed_Atom extends WP_UnitTestCase {
|
||||
$this->excerpt_only = get_option( 'rss_use_excerpt' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Tear down.
|
||||
*/
|
||||
public static function wpTearDownAfterClass() {
|
||||
delete_option( 'blogdescription' );
|
||||
}
|
||||
|
||||
/**
|
||||
* This is a bit of a hack used to buffer feed content.
|
||||
*/
|
||||
|
||||
@@ -58,6 +58,10 @@ class Tests_Feed_RSS2 extends WP_UnitTestCase {
|
||||
foreach ( self::$posts as $post ) {
|
||||
wp_set_object_terms( $post, self::$category->slug, 'category' );
|
||||
}
|
||||
|
||||
// Assign a tagline option.
|
||||
update_option( 'blogdescription', 'Just another WordPress site' );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,6 +79,13 @@ class Tests_Feed_RSS2 extends WP_UnitTestCase {
|
||||
create_initial_taxonomies();
|
||||
}
|
||||
|
||||
/**
|
||||
* Tear down.
|
||||
*/
|
||||
public static function wpTearDownAfterClass() {
|
||||
delete_option( 'blogdescription' );
|
||||
}
|
||||
|
||||
/**
|
||||
* This is a bit of a hack used to buffer feed content.
|
||||
*/
|
||||
|
||||
@@ -60,6 +60,18 @@ class Tests_General_wpGetDocumentTitle extends WP_UnitTestCase {
|
||||
public function test__wp_render_title_tag() {
|
||||
$this->go_to( '/' );
|
||||
|
||||
$this->expectOutputString( sprintf( "<title>%s</title>\n", $this->blog_name ) );
|
||||
_wp_render_title_tag();
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 6479
|
||||
*/
|
||||
public function test__wp_render_title_tag_with_blog_description() {
|
||||
$this->go_to( '/' );
|
||||
|
||||
update_option( 'blogdescription', 'A blog description' );
|
||||
|
||||
$this->expectOutputString( sprintf( "<title>%s – %s</title>\n", $this->blog_name, get_option( 'blogdescription' ) ) );
|
||||
_wp_render_title_tag();
|
||||
}
|
||||
@@ -99,12 +111,12 @@ class Tests_General_wpGetDocumentTitle extends WP_UnitTestCase {
|
||||
add_filter( 'document_title_parts', array( $this, 'front_page_title_parts' ) );
|
||||
|
||||
$this->go_to( '/' );
|
||||
$this->assertSame( sprintf( '%s – Just another WordPress site', $this->blog_name ), wp_get_document_title() );
|
||||
$this->assertSame( sprintf( '%s', $this->blog_name ), wp_get_document_title() );
|
||||
|
||||
update_option( 'show_on_front', 'posts' );
|
||||
|
||||
$this->go_to( '/' );
|
||||
$this->assertSame( sprintf( '%s – Just another WordPress site', $this->blog_name ), wp_get_document_title() );
|
||||
$this->assertSame( sprintf( '%s', $this->blog_name ), wp_get_document_title() );
|
||||
}
|
||||
|
||||
public function front_page_title_parts( $parts ) {
|
||||
@@ -135,7 +147,7 @@ class Tests_General_wpGetDocumentTitle extends WP_UnitTestCase {
|
||||
|
||||
add_filter( 'document_title_parts', array( $this, 'paged_title_parts' ) );
|
||||
|
||||
$this->assertSame( sprintf( '%s – Page 4 – Just another WordPress site', $this->blog_name ), wp_get_document_title() );
|
||||
$this->assertSame( sprintf( '%s – Page 4', $this->blog_name ), wp_get_document_title() );
|
||||
}
|
||||
|
||||
public function paged_title_parts( $parts ) {
|
||||
|
||||
Reference in New Issue
Block a user