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:
Sergey Biryukov
2013-12-29 08:05:50 +00:00
parent 401a3d8f47
commit 71954e1f44
2 changed files with 35 additions and 32 deletions
+4 -3
View File
@@ -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() ) . ');';