Make WordPress Core

Ticket #10970: prevent_url_mod.diff

File prevent_url_mod.diff, 992 bytes (added by desmith, 7 years ago)

Patch copied from #41595

  • wp-admin/options-general.php

    diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php
    index 834f027..915b4ac 100644
    a b include( ABSPATH . 'wp-admin/admin-header.php' ); 
    6565<td><input name="blogdescription" type="text" id="blogdescription" aria-describedby="tagline-description" value="<?php form_option('blogdescription'); ?>" class="regular-text" />
    6666<p class="description" id="tagline-description"><?php _e( 'In a few words, explain what this site is about.' ) ?></p></td>
    6767</tr>
    68 <?php if ( !is_multisite() ) { ?>
     68<?php if ( ( !is_multisite() ) && ( !defined('WP_DISABLE_URLCHANGES') ) ) { ?>
    6969<tr>
    7070<th scope="row"><label for="siteurl"><?php _e('WordPress Address (URL)') ?></label></th>
    7171<td><input name="siteurl" type="url" id="siteurl" value="<?php form_option( 'siteurl' ); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></td>