Make WordPress Core

Ticket #47237: 47237.patch

File 47237.patch, 1.3 KB (added by dilipbheda, 5 years ago)
  • src/wp-admin/options-media.php

    diff --git a/src/wp-admin/options-media.php b/src/wp-admin/options-media.php
    index 5d7483c5d8..f2be9f0579 100644
    a b if ( isset( $GLOBALS['wp_settings']['media']['embeds'] ) ) : 
    112112                ?>
    113113<tr>
    114114<th scope="row"><label for="upload_path"><?php _e( 'Store uploads in this folder' ); ?></label></th>
    115 <td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr( get_option( 'upload_path' ) ); ?>" class="regular-text code" />
     115<td><input name="upload_path" type="text" id="upload_path" value="<?php form_option( 'upload_path' ); ?>" class="regular-text code" />
    116116<p class="description">
    117117                <?php
    118118                /* translators: %s: wp-content/uploads */
    if ( isset( $GLOBALS['wp_settings']['media']['embeds'] ) ) : 
    124124
    125125<tr>
    126126<th scope="row"><label for="upload_url_path"><?php _e( 'Full URL path to files' ); ?></label></th>
    127 <td><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo esc_attr( get_option( 'upload_url_path' ) ); ?>" class="regular-text code" />
     127<td><input name="upload_url_path" type="text" id="upload_url_path" value="<?php form_option( 'upload_url_path' ); ?>" class="regular-text code" />
    128128<p class="description"><?php _e( 'Configuring this is optional. By default, it should be blank.' ); ?></p>
    129129</td>
    130130</tr>