Make WordPress Core


Ignore:
Timestamp:
08/03/2022 12:18:22 PM (14 months ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/general/wpGetDocumentTitle.php

    r52010 r53815  
    6161        $this->go_to( '/' );
    6262
     63        $this->expectOutputString( sprintf( "<title>%s</title>\n", $this->blog_name ) );
     64        _wp_render_title_tag();
     65    }
     66
     67    /**
     68     * @ticket 6479
     69     */
     70    public function test__wp_render_title_tag_with_blog_description() {
     71        $this->go_to( '/' );
     72
     73        update_option( 'blogdescription', 'A blog description' );
     74
    6375        $this->expectOutputString( sprintf( "<title>%s &#8211; %s</title>\n", $this->blog_name, get_option( 'blogdescription' ) ) );
    6476        _wp_render_title_tag();
     
    100112
    101113        $this->go_to( '/' );
    102         $this->assertSame( sprintf( '%s &#8211; Just another WordPress site', $this->blog_name ), wp_get_document_title() );
     114        $this->assertSame( sprintf( '%s', $this->blog_name ), wp_get_document_title() );
    103115
    104116        update_option( 'show_on_front', 'posts' );
    105117
    106118        $this->go_to( '/' );
    107         $this->assertSame( sprintf( '%s &#8211; Just another WordPress site', $this->blog_name ), wp_get_document_title() );
     119        $this->assertSame( sprintf( '%s', $this->blog_name ), wp_get_document_title() );
    108120    }
    109121
     
    136148        add_filter( 'document_title_parts', array( $this, 'paged_title_parts' ) );
    137149
    138         $this->assertSame( sprintf( '%s &#8211; Page 4 &#8211; Just another WordPress site', $this->blog_name ), wp_get_document_title() );
     150        $this->assertSame( sprintf( '%s &#8211; Page 4', $this->blog_name ), wp_get_document_title() );
    139151    }
    140152
Note: See TracChangeset for help on using the changeset viewer.