Skip to content

Commit 126ffdd

Browse files
committed
Check for empty string instead of empty()
1 parent 8cfd53e commit 126ffdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-admin/options-permalink.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ class="button button-secondary"
428428
</label>
429429
</th>
430430
<td>
431-
<?php if ( empty( $blog_prefix ) ) : ?>
431+
<?php if ( '' === $blog_prefix ) : ?>
432432
<input name="category_base" id="category_base" type="text"
433433
value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code"
434434
/>
@@ -447,7 +447,7 @@ class="button button-secondary"
447447
<label for="tag_base"><?php _e( 'Tag base' ); ?></label>
448448
</th>
449449
<td>
450-
<?php if ( empty( $blog_prefix ) ) : ?>
450+
<?php if ( '' === $blog_prefix ) : ?>
451451
<input name="tag_base" id="tag_base" type="text"
452452
value="<?php echo esc_attr( $tag_base ); ?>" class="regular-text code"
453453
/>

0 commit comments

Comments
 (0)