]> git.pld-linux.org Git - packages/wordpress.git/blame - multisite.patch
- avoid empty <li>
[packages/wordpress.git] / multisite.patch
CommitLineData
c1fcdc96
ER
1--- wordpress-3.0.1/wp-config-sample.php 2010-09-08 18:03:29.421631471 +0300
2+++ wordpress-3.0.1/wp-config-sample.php 2010-09-08 18:28:37.181139000 +0300
3@@ -80,6 +80,12 @@
4 */
5 define('WP_DEBUG', false);
6
7+/**
8+ * Options for setting up Multisite.
9+ * @see http://codex.wordpress.org/Create_A_Network
10+ */
11+define('WP_ALLOW_MULTISITE', false);
12+
13 /* That's all, stop editing! Happy blogging. */
14
15 /** Absolute path to the WordPress directory. */
f7f07f8c
ER
16--- wordpress-3.0.1/wp-includes/ms-default-constants.php~ 2010-09-08 18:37:37.000000000 +0300
17+++ wordpress-3.0.1/wp-includes/ms-default-constants.php 2010-09-08 18:37:39.450725426 +0300
18@@ -18,14 +18,14 @@
19 /** @since 3.0.0 */
20 // Base uploads dir relative to ABSPATH
21 if ( !defined( 'UPLOADBLOGSDIR' ) )
22- define( 'UPLOADBLOGSDIR', 'wp-content/blogs.dir' );
23+ define( 'UPLOADBLOGSDIR', '/var/lib/wordpress' );
24
25 /** @since 3.0.0 */
26 if ( !defined( 'UPLOADS' ) ) {
27 // Uploads dir relative to ABSPATH
28 define( 'UPLOADS', UPLOADBLOGSDIR . "/{$wpdb->blogid}/files/" );
29 if ( 'wp-content/blogs.dir' == UPLOADBLOGSDIR )
30- define( 'BLOGUPLOADDIR', WP_CONTENT_DIR . "/blogs.dir/{$wpdb->blogid}/files/" );
31+ define( 'BLOGUPLOADDIR', "/var/lib/wordpress/{$wpdb->blogid}/files/" );
32 }
33 }
34
35--- wordpress-3.0.1/wp-admin/includes/ms.php~ 2010-09-08 18:39:08.000000000 +0300
36+++ wordpress-3.0.1/wp-admin/includes/ms.php 2010-09-08 18:40:25.993923701 +0300
37@@ -88,7 +88,7 @@
38 $wpdb->query( "DROP TABLE IF EXISTS ". current( $drop_table ) ."" );
39 }
40 $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->blogs WHERE blog_id = %d", $blog_id ) );
41- $dir = apply_filters( 'wpmu_delete_blog_upload_dir', WP_CONTENT_DIR . "/blogs.dir/{$blog_id}/files/", $blog_id );
42+ $dir = apply_filters( 'wpmu_delete_blog_upload_dir', UPLOADBLOGSDIR . "/{$blog_id}/files/", $blog_id );
43 $dir = rtrim( $dir, DIRECTORY_SEPARATOR );
44 $top_dir = $dir;
45 $stack = array($dir);
357a111c
ER
46--- wordpress-3.0.1/wp-admin/network.php 2010-09-08 18:41:39.993826475 +0300
47+++ wordpress-3.0.1/wp-admin/network.php 2010-09-08 18:48:16.814203165 +0300
f7f07f8c
ER
48@@ -96,7 +96,7 @@
49 '<p>' . __('This screen allows you to configure a network as having subdomains (<code>site1.example.com</code>) or subdirectories (<code>example.com/site1</code>). Subdomains require wildcard subdomains to be enabled in Apache and DNS records, if your host allows it.') . '</p>' .
50 '<p>' . __('Choose subdomains or subdirectories; this can only be switched afterwards by reconfiguring your install. Fill out the network details, and click install. If this does not work, you may have to add a wildcard DNS record (for subdomains) or change to another setting in Permalinks (for subdirectories).') . '</p>' .
51 '<p>' . __('The next screen for Network will give you individually-generated lines of code to add to your wp-config.php and .htaccess files. Make sure the settings of your FTP client make files starting with a dot visible, so that you can find .htaccess; you may have to create this file if it really is not there. Make backup copies of those two files.') . '</p>' .
52- '<p>' . __('Add a <code>blogs.dir</code> directory under <code>/wp-content</code> and add the designated lines of code to wp-config.php (just before <code>/*...stop editing...*/</code>) and <code>.htaccess</code> (replacing the existing WordPress rules).') . '</p>' .
53+ '<p>' . __('Add the designated lines of code to wp-config.php (just before <code>/*...stop editing...*/</code>) and <code>.htaccess</code> (replacing the existing WordPress rules).') . '</p>' .
54 '<p>' . __('Refreshing your browser will take you to a screen with an archive of those added lines of code. A set of six links under Super Admin will appear at the top of the main left navigation menu. The multisite network is now enabled.') . '</p>' .
55 '<p>' . __('The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with &#8220;/blog/&#8221; from the main site. This disabling will be addressed soon in a future version.') . '</p>' .
56 '<p><strong>' . __('For more information:') . '</strong></p>' .
357a111c
ER
57@@ -323,11 +323,12 @@
58 }
f7f07f8c
ER
59 ?>
60 <ol>
357a111c 61- <li><p><?php
f7f07f8c 62- printf( __( 'Create a <code>blogs.dir</code> directory in <code>%s</code>. This directory is used to stored uploaded media for your additional sites and must be writeable by the web server.' ), WP_CONTENT_DIR );
357a111c 63+ <?php
f7f07f8c 64 if ( WP_CONTENT_DIR != ABSPATH . 'wp-content' )
357a111c 65+ echo '<li><p>';
f7f07f8c 66 echo ' <strong>' . __('Warning:') . ' ' . __( 'Networks may not be fully compatible with custom wp-content directories.' ) . '</strong';
357a111c
ER
67- ?></p></li>
68+ echo '</p></li>';
69+ ?>
70 <li><p><?php printf( __( 'Add the following to your <code>wp-config.php</code> file in <code>%s</code> <strong>above</strong> the line reading <code>/* That&#8217;s all, stop editing! Happy blogging. */</code>:' ), ABSPATH ); ?></p>
71 <textarea class="code" readonly="readonly" cols="100" rows="7">
72 define( 'MULTISITE', true );
f7f07f8c
ER
73--- wordpress-3.0.1/wp-includes/ms-functions.php~ 2010-09-08 18:39:08.000000000 +0300
74+++ wordpress-3.0.1/wp-includes/ms-functions.php 2010-09-08 18:43:02.557151530 +0300
75@@ -902,7 +902,7 @@
76 update_option('siteurl', $url);
77 update_option('home', $url);
78 update_option('fileupload_url', $url . "files" );
79- update_option('upload_path', "wp-content/blogs.dir/" . $blog_id . "/files");
80+ update_option('upload_path', UPLOADBLOGSDIR . "/" . $blog_id . "/files");
81 update_option('blogname', stripslashes( $blog_title ) );
82 update_option('admin_email', '');
83 $wpdb->update( $wpdb->options, array('option_value' => ''), array('option_name' => 'admin_email') );
This page took 0.063146 seconds and 4 git commands to generate.