Changeset 45028
- Timestamp:
- 03/27/2019 12:15:15 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r44956 r45028 949 949 if ( $custom_logo_id ) { 950 950 $custom_logo_attr = array( 951 'class' => 'custom-logo', 952 'itemprop' => 'logo', 951 'class' => 'custom-logo', 953 952 ); 954 953 … … 967 966 */ 968 967 $html = sprintf( 969 '<a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>',968 '<a href="%1$s" class="custom-logo-link" rel="home">%2$s</a>', 970 969 esc_url( home_url( '/' ) ), 971 970 wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr ) -
trunk/tests/phpunit/tests/general/template.php
r44785 r45028 309 309 310 310 $custom_logo_attr = array( 311 'class' => 'custom-logo', 312 'itemprop' => 'logo', 311 'class' => 'custom-logo', 313 312 ); 314 313 … … 323 322 restore_current_blog(); 324 323 325 $expected_custom_logo = '<a href="' . $home_url . '" class="custom-logo-link" rel="home" itemprop="url">' . $image . '</a>';324 $expected_custom_logo = '<a href="' . $home_url . '" class="custom-logo-link" rel="home">' . $image . '</a>'; 326 325 $this->assertEquals( $expected_custom_logo, get_custom_logo( $blog_id ) ); 327 326 } … … 339 338 340 339 $custom_logo_attr = array( 341 'class' => 'custom-logo', 342 'itemprop' => 'logo', 340 'class' => 'custom-logo', 343 341 ); 344 342 … … 351 349 $image = wp_get_attachment_image( $this->custom_logo_id, 'full', false, $custom_logo_attr ); 352 350 353 $this->expectOutputString( '<a href="http://' . WP_TESTS_DOMAIN . '/" class="custom-logo-link" rel="home" itemprop="url">' . $image . '</a>' );351 $this->expectOutputString( '<a href="http://' . WP_TESTS_DOMAIN . '/" class="custom-logo-link" rel="home">' . $image . '</a>' ); 354 352 the_custom_logo(); 355 353 } … … 371 369 false, 372 370 array( 373 'class' => 'custom-logo', 374 'itemprop' => 'logo', 371 'class' => 'custom-logo', 375 372 ) 376 373 ); 377 374 378 $this->expectOutputString( '<a href="http://' . WP_TESTS_DOMAIN . '/" class="custom-logo-link" rel="home" itemprop="url">' . $image . '</a>' );375 $this->expectOutputString( '<a href="http://' . WP_TESTS_DOMAIN . '/" class="custom-logo-link" rel="home">' . $image . '</a>' ); 379 376 the_custom_logo(); 380 377 }
Note: See TracChangeset
for help on using the changeset viewer.