From 3027054f000c68c7d4f39118a43909956903f028 Mon Sep 17 00:00:00 2001 From: Dan Knauss <273554+dknauss@users.noreply.github.com> Date: Sun, 30 Aug 2026 15:11:54 -0600 Subject: [PATCH] Administration: Restore the full-width upload folder row on Settings > Media. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "Organize my uploads into month- and year-based folders" row spanned both columns unconditionally until [40823] moved it inside the upload-path conditional in order to change its `th` to a `td`, and carried `colspan="2"` onto only the editable-paths branch. On the `else` branch — what a site with default upload paths gets — the cell has no colspan. With no fields registered the table has one column and the cell fills it, so nothing looks wrong. Any field added through the `do_settings_fields( 'media', 'uploads' )` call on the next line gives the table a second column, `.form-table th { width: 200px }` claims the first, and the core label wraps onto three lines. Closing the conditional above the row restores the single unconditional cell while keeping the `td`/`td-full` markup [40823] introduced. Rendering is unchanged when no fields are registered, since `colspan="2"` on a lone cell in a one-column table spans what it already spanned. See #51190. --- src/wp-admin/options-media.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wp-admin/options-media.php b/src/wp-admin/options-media.php index d7decddf01537..35661427c1574 100644 --- a/src/wp-admin/options-media.php +++ b/src/wp-admin/options-media.php @@ -140,12 +140,9 @@

+ - - - -