WordPress.org

Make WordPress Core

Ticket #12807: network_at_options-general.diff

File network_at_options-general.diff, 823 bytes (added by PotterSys, 4 years ago)

Rough draft to add a Network subsection in options-general.php

  • options-general.php

     
    341341</p> 
    342342</form> 
    343343 
     344<h3><?php _e('Multiple Sites (Network)') ?></h3> 
     345<?php 
     346// Just copying what appears on wp-admin/network.php 
     347if ( is_multisite() || ( defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) ): 
     348?> 
     349        <p><?php printf( __('You should check <a href="%s">the Network section</a> to create a new Network, or find out the current status') , "network.php" ); ?></p> 
     350<?php 
     351else: 
     352?> 
     353        <p><?php _e( 'You must define the <code>WP_ALLOW_MULTISITE</code> constant as true in your wp-config.php file to allow creation of a Network.' ); ?></p> 
     354<?php 
     355endif; 
     356?> 
     357 
    344358</div> 
    345359 
    346360<?php include('./admin-footer.php') ?>