X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f5fcdc7994bb67cce809bc4777944ae8b7fad4a4..refs/tags/wordpress-4.3:/wp-admin/custom-background.php?ds=sidebyside diff --git a/wp-admin/custom-background.php b/wp-admin/custom-background.php index fc320f9f..36a5b504 100644 --- a/wp-admin/custom-background.php +++ b/wp-admin/custom-background.php @@ -108,7 +108,6 @@ class Custom_Background { * @since 3.0.0 */ public function take_action() { - if ( empty($_POST) ) return; @@ -177,7 +176,7 @@ class Custom_Background { public function admin_page() { ?>
-

+

@@ -260,6 +259,7 @@ class Custom_Background { +
@@ -279,6 +279,7 @@ class Custom_Background {
+ @@ -357,7 +358,6 @@ if ( current_theme_supports( 'custom-background', 'default-color' ) ) * @since 3.0.0 */ public function handle_upload() { - if ( empty($_FILES) ) return; @@ -434,6 +434,9 @@ if ( current_theme_supports( 'custom-background', 'default-color' ) ) * * @since 3.4.0 * @deprecated 3.5.0 + * + * @param array $form_fields + * @return array $form_fields */ public function attachment_fields_to_edit( $form_fields ) { return $form_fields; @@ -443,6 +446,9 @@ if ( current_theme_supports( 'custom-background', 'default-color' ) ) * * @since 3.4.0 * @deprecated 3.5.0 + * + * @param array $tabs + * @return array $tabs */ public function filter_upload_tabs( $tabs ) { return $tabs;