Changeset 53815
- Timestamp:
- 08/03/2022 12:18:22 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/schema.php
r53083 r53815 402 402 'home' => $guessurl, 403 403 'blogname' => __( 'My Site' ), 404 /* translators: Site tagline. */ 405 'blogdescription' => __( 'Just another WordPress site' ), 404 'blogdescription' => '', 406 405 'users_can_register' => 0, 407 406 'admin_email' => 'you@example.com', … … 556 555 // 3.0.0 multisite. 557 556 if ( is_multisite() ) { 558 /* translators: %s: Network title. */559 $defaults['blogdescription'] = sprintf( __( 'Just another %s site' ), get_network()->site_name );560 557 $defaults['permalink_structure'] = '/%year%/%monthnum%/%day%/%postname%/'; 561 558 } -
trunk/src/wp-admin/options-general.php
r53186 r53815 67 67 </tr> 68 68 69 <?php 70 /* translators: Site tagline. */ 71 $sample_tagline = __( 'Just another WordPress site' ); 72 if ( is_multisite() ) { 73 /* translators: %s: Network title. */ 74 $sample_tagline = sprintf( __( 'Just another %s site' ), get_network()->site_name ); 75 } 76 ?> 69 77 <tr> 70 78 <th scope="row"><label for="blogdescription"><?php _e( 'Tagline' ); ?></label></th> 71 <td><input name="blogdescription" type="text" id="blogdescription" aria-describedby="tagline-description" value="<?php form_option( 'blogdescription' ); ?>" class="regular-text" />79 <td><input name="blogdescription" type="text" id="blogdescription" aria-describedby="tagline-description" value="<?php form_option( 'blogdescription' ); ?>" class="regular-text" placeholder="<?php echo $sample_tagline; ?>" /> 72 80 <p class="description" id="tagline-description"><?php _e( 'In a few words, explain what this site is about.' ); ?></p></td> 73 81 </tr> -
trunk/tests/phpunit/tests/feed/atom.php
r52267 r53815 52 52 } 53 53 54 // Assign a tagline option. 55 update_option( 'blogdescription', 'Just another WordPress site' ); 56 54 57 } 55 58 … … 62 65 $this->post_count = (int) get_option( 'posts_per_rss' ); 63 66 $this->excerpt_only = get_option( 'rss_use_excerpt' ); 67 } 68 69 /** 70 * Tear down. 71 */ 72 public static function wpTearDownAfterClass() { 73 delete_option( 'blogdescription' ); 64 74 } 65 75 -
trunk/tests/phpunit/tests/feed/rss2.php
r53241 r53815 59 59 wp_set_object_terms( $post, self::$category->slug, 'category' ); 60 60 } 61 62 // Assign a tagline option. 63 update_option( 'blogdescription', 'Just another WordPress site' ); 64 61 65 } 62 66 … … 74 78 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 75 79 create_initial_taxonomies(); 80 } 81 82 /** 83 * Tear down. 84 */ 85 public static function wpTearDownAfterClass() { 86 delete_option( 'blogdescription' ); 76 87 } 77 88 -
trunk/tests/phpunit/tests/general/wpGetDocumentTitle.php
r52010 r53815 61 61 $this->go_to( '/' ); 62 62 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 63 75 $this->expectOutputString( sprintf( "<title>%s – %s</title>\n", $this->blog_name, get_option( 'blogdescription' ) ) ); 64 76 _wp_render_title_tag(); … … 100 112 101 113 $this->go_to( '/' ); 102 $this->assertSame( sprintf( '%s – Just another WordPress site', $this->blog_name ), wp_get_document_title() );114 $this->assertSame( sprintf( '%s', $this->blog_name ), wp_get_document_title() ); 103 115 104 116 update_option( 'show_on_front', 'posts' ); 105 117 106 118 $this->go_to( '/' ); 107 $this->assertSame( sprintf( '%s – Just another WordPress site', $this->blog_name ), wp_get_document_title() );119 $this->assertSame( sprintf( '%s', $this->blog_name ), wp_get_document_title() ); 108 120 } 109 121 … … 136 148 add_filter( 'document_title_parts', array( $this, 'paged_title_parts' ) ); 137 149 138 $this->assertSame( sprintf( '%s – Page 4 – Just another WordPress site', $this->blog_name ), wp_get_document_title() );150 $this->assertSame( sprintf( '%s – Page 4', $this->blog_name ), wp_get_document_title() ); 139 151 } 140 152 -
trunk/tests/qunit/fixtures/wp-api-generated.js
r53589 r53815 8 8 mockedApiResponse.Schema = { 9 9 "name": "Test Blog", 10 "description": " Just another WordPress site",10 "description": "", 11 11 "url": "http://example.org", 12 12 "home": "http://example.org", … … 12287 12287 mockedApiResponse.settings = { 12288 12288 "title": "Test Blog", 12289 "description": " Just another WordPress site",12289 "description": "", 12290 12290 "url": "http://example.org", 12291 12291 "email": "admin@example.org",
Note: See TracChangeset
for help on using the changeset viewer.