|
@@ 527-538 (lines=12) @@
|
| 524 |
|
<?php |
| 525 |
|
if ( ! current_theme_supports( 'custom-header', 'flex-height' ) && ! current_theme_supports( 'custom-header', 'flex-width' ) ) { |
| 526 |
|
printf( __( 'Images of exactly <strong>%1$d × %2$d pixels</strong> will be used as-is.' ) . '<br />', get_theme_support( 'custom-header', 'width' ), get_theme_support( 'custom-header', 'height' ) ); |
| 527 |
|
} elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) { |
| 528 |
|
if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) |
| 529 |
|
printf( |
| 530 |
|
/* translators: %s: size in pixels */ |
| 531 |
|
__( 'Images should be at least %s wide.' ) . ' ', |
| 532 |
|
sprintf( |
| 533 |
|
/* translators: %d: custom header width */ |
| 534 |
|
'<strong>' . __( '%d pixels' ) . '</strong>', |
| 535 |
|
get_theme_support( 'custom-header', 'width' ) |
| 536 |
|
) |
| 537 |
|
); |
| 538 |
|
} elseif ( current_theme_supports( 'custom-header', 'flex-width' ) ) { |
| 539 |
|
if ( ! current_theme_supports( 'custom-header', 'flex-height' ) ) |
| 540 |
|
printf( |
| 541 |
|
/* translators: %s: size in pixels */ |
|
@@ 551-560 (lines=10) @@
|
| 548 |
|
); |
| 549 |
|
} |
| 550 |
|
if ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) { |
| 551 |
|
if ( current_theme_supports( 'custom-header', 'width' ) ) |
| 552 |
|
printf( |
| 553 |
|
/* translators: %s: size in pixels */ |
| 554 |
|
__( 'Suggested width is %s.' ) . ' ', |
| 555 |
|
sprintf( |
| 556 |
|
/* translators: %d: custom header width */ |
| 557 |
|
'<strong>' . __( '%d pixels' ) . '</strong>', |
| 558 |
|
get_theme_support( 'custom-header', 'width' ) |
| 559 |
|
) |
| 560 |
|
); |
| 561 |
|
if ( current_theme_supports( 'custom-header', 'height' ) ) |
| 562 |
|
printf( |
| 563 |
|
/* translators: %s: size in pixels */ |
|
@@ 561-570 (lines=10) @@
|
| 558 |
|
get_theme_support( 'custom-header', 'width' ) |
| 559 |
|
) |
| 560 |
|
); |
| 561 |
|
if ( current_theme_supports( 'custom-header', 'height' ) ) |
| 562 |
|
printf( |
| 563 |
|
/* translators: %s: size in pixels */ |
| 564 |
|
__( 'Suggested height is %s.' ) . ' ', |
| 565 |
|
sprintf( |
| 566 |
|
/* translators: %d: custom header height */ |
| 567 |
|
'<strong>' . __( '%d pixels' ) . '</strong>', |
| 568 |
|
get_theme_support( 'custom-header', 'height' ) |
| 569 |
|
) |
| 570 |
|
); |
| 571 |
|
} |
| 572 |
|
?></p> |
| 573 |
|
<form enctype="multipart/form-data" id="upload-form" class="wp-upload-form" method="post" action="<?php echo esc_url( add_query_arg( 'step', 2 ) ) ?>"> |