~ubuntu-branches/debian/jessie/wordpress/jessie

« back to all changes in this revision

Viewing changes to .pc/mu.patch/wp-admin/network.php

  • Committer: Package Import Robot
  • Author(s): Craig Small
  • Date: 2014-04-17 20:56:19 UTC
  • mfrom: (1.2.35)
  • Revision ID: package-import@ubuntu.com-20140417205619-nurbet6eho4yvwfv
Tags: 3.9+dfsg-1
* New upstream release
* 3.9 seems to handle different locations for plugins so the
  plugin directory handling patches have been cut back.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        '<p><strong>' . __('For more information:') . '</strong></p>' .
131
131
        '<p>' . __('<a href="http://codex.wordpress.org/Create_A_Network" target="_blank">Documentation on Creating a Network</a>') . '</p>' .
132
132
        '<p>' . __('<a href="http://codex.wordpress.org/Tools_Network_Screen" target="_blank">Documentation on the Network Screen</a>') . '</p>' .
133
 
        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
 
133
        '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
134
134
);
135
135
 
136
136
include( ABSPATH . 'wp-admin/admin-header.php' );
329
329
        $rewrite_base      = ! empty( $wp_siteurl_subdir ) ? ltrim( trailingslashit( $wp_siteurl_subdir ), '/' ) : '';
330
330
 
331
331
 
332
 
        $location_of_wp_config = ABSPATH;
333
 
        if ( ! file_exists( ABSPATH . 'wp-config.php' ) && file_exists( dirname( ABSPATH ) . '/wp-config.php' ) )
334
 
                $location_of_wp_config = trailingslashit( dirname( ABSPATH ) );
 
332
        $location_of_wp_config = $abspath_fix;
 
333
        if ( ! file_exists( ABSPATH . 'wp-config.php' ) && file_exists( dirname( ABSPATH ) . '/wp-config.php' ) ) {
 
334
                $location_of_wp_config = dirname( $abspath_fix );
 
335
        }
 
336
        $location_of_wp_config = trailingslashit( $location_of_wp_config );
335
337
 
336
338
        // Wildcard DNS message.
337
339
        if ( is_wp_error( $errors ) )
467
469
    </system.webServer>
468
470
</configuration>';
469
471
 
470
 
        ?>
471
 
                <li><p><?php printf( __( 'Add the following to your <code>web.config</code> file in <code>%s</code>, replacing other WordPress rules:' ), $home_path ); ?></p>
472
 
                <?php
 
472
                echo '<li><p>';
 
473
                /* translators: 1: a filename like .htaccess. 2: a file path. */
 
474
                printf( __( 'Add the following to your %1$s file in %2$s, <strong>replacing</strong> other WordPress rules:' ),
 
475
                        '<code>web.config</code>', '<code>' . $home_path . '</code>' );
 
476
                echo '</p>';
473
477
                if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' )
474
478
                        echo '<p><strong>' . __('Warning:') . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>';
475
479
                ?>
501
505
RewriteRule . index.php [L]
502
506
EOF;
503
507
 
504
 
                ?>
505
 
                <li><p><?php printf( __( 'Add the following to your <code>.htaccess</code> file in <code>%s</code>, replacing other WordPress rules:' ), $home_path ); ?></p>
506
 
                <?php
 
508
                echo '<li><p>';
 
509
                /* translators: 1: a filename like .htaccess. 2: a file path. */
 
510
                printf( __( 'Add the following to your %1$s file in %2$s, <strong>replacing</strong> other WordPress rules:' ),
 
511
                        '<code>.htaccess</code>', '<code>' . $home_path . '</code>' );
 
512
                echo '</p>';
507
513
                if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' )
508
514
                        echo '<p><strong>' . __('Warning:') . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>';
509
515
                ?>