Skip to content

Commit 10751a5

Browse files
committed
Administration: Restore the full-width upload folder row on Settings > Media.
On Settings > Media, "Organize my uploads into month- and year-based folders" wraps onto three lines as soon as any plugin registers a field in the Uploads settings section. The row spanned both columns unconditionally until [40823] which moved it inside the upload-path conditional in order to change its `th` into a `td`. That carried `colspan="2"` onto the editable-paths branch only. This changeset closes the conditional above the row and restore the single unconditional cell, keeping the td/td-full markup [40823] introduced. Follow-up to [40823]. Props imath, dpknauss, dhruvang21, audrasjb, dilip2615, im3dabasia1. Fixes #51190. git-svn-id: https://develop.svn.wordpress.org/trunk@65359 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 05e9f11 commit 10751a5

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎src/wp-admin/options-media.php‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,9 @@
140140
<p class="description"><?php _e( 'Configuring this is optional. By default, it should be blank.' ); ?></p>
141141
</td>
142142
</tr>
143+
<?php endif; ?>
143144
<tr>
144145
<td colspan="2" class="td-full">
145-
<?php else : ?>
146-
<tr>
147-
<td class="td-full">
148-
<?php endif; ?>
149146
<label for="uploads_use_yearmonth_folders">
150147
<input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1"<?php checked( '1', get_option( 'uploads_use_yearmonth_folders' ) ); ?> />
151148
<?php _e( 'Organize my uploads into month- and year-based folders' ); ?>

0 commit comments

Comments
 (0)