mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Always show Background Image section heading and the opening table tag on Custom Background screen, to make in consistent with Custom Header and avoid broken markup.
props obenland. fixes #26731. git-svn-id: https://develop.svn.wordpress.org/trunk@26878 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -450,7 +450,7 @@ class Custom_Image_Header {
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<h2><?php _e('Custom Header'); ?></h2>
|
||||
<h2><?php _e( 'Custom Header' ); ?></h2>
|
||||
|
||||
<?php if ( ! empty( $this->updated ) ) { ?>
|
||||
<div id="message" class="updated">
|
||||
@@ -467,8 +467,9 @@ class Custom_Image_Header {
|
||||
<tr valign="top">
|
||||
<th scope="row"><?php _e( 'Preview' ); ?></th>
|
||||
<td>
|
||||
<?php if ( $this->admin_image_div_callback ) {
|
||||
call_user_func( $this->admin_image_div_callback );
|
||||
<?php
|
||||
if ( $this->admin_image_div_callback ) {
|
||||
call_user_func( $this->admin_image_div_callback );
|
||||
} else {
|
||||
$custom_header = get_custom_header();
|
||||
$header_image_style = 'background-image:url(' . esc_url( get_header_image() ) . ');';
|
||||
|
||||
Reference in New Issue
Block a user