From 6f6c0ebb525b6c781e95816e309bc8361b40de1f Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 21 Oct 2015 03:50:19 +0000 Subject: [PATCH] Plugins/Updates: in `request_filesystem_credentials()`, alter the heading HTML tag based on the current screen for improved semantics. Props afercia. Fixes #34267. git-svn-id: https://develop.svn.wordpress.org/trunk@35315 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/forms.css | 11 +++++++++++ src/wp-admin/includes/file.php | 20 ++++++++++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index 84614ee7df..bc4abb0559 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -957,6 +957,17 @@ table.form-table td .updated p { margin: 25px; } +#request-filesystem-credentials-title { + font-size: 1.3em; + margin: 1em 0; +} + +.request-filesystem-credentials-form legend { + font-size: 1em; + padding: 1.33em 0; + font-weight: 600; +} + .request-filesystem-credentials-form input[type="text"], .request-filesystem-credentials-form input[type="password"] { display: block; diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 45d7715765..a37ead892f 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -1001,6 +1001,8 @@ function get_filesystem_method( $args = array(), $context = false, $allow_relaxe * * @todo Properly mark optional arguments as such * + * @global string $pagenow + * * @param string $form_post the URL to post the form to * @param string $type the chosen Filesystem method in use * @param bool $error if the current request has failed to connect @@ -1010,6 +1012,7 @@ function get_filesystem_method( $args = array(), $context = false, $allow_relaxe * @return bool False on failure. True on success. */ function request_filesystem_credentials($form_post, $type = '', $error = false, $context = false, $extra_fields = null, $allow_relaxed_file_ownership = false ) { + global $pagenow; /** * Filter the filesystem credentials form output. @@ -1141,7 +1144,14 @@ jQuery(function($){
-

+" . __( 'Connection Information' ) . ""; +?>

-

+
+ +
-

-
+
+ $text ) : ?>