]> git.pld-linux.org Git - packages/wordpress.git/blob - multisite.patch
- drop obsolete and outdated manual inclusion of rpm macros
[packages/wordpress.git] / multisite.patch
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. */
16 --- wordpress-3.5.1/wp-includes/ms-default-constants.php~       2013-02-06 16:12:50.000000000 +0200
17 +++ wordpress-3.5.1/wp-includes/ms-default-constants.php        2013-02-06 16:14:43.844078357 +0200
18 @@ -26,7 +26,7 @@
19  
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         // Note, the main site in a post-MU network uses wp-content/uploads.
26         // This is handled in wp_upload_dir() by ignoring UPLOADS for this case.
27 @@ -34,8 +34,8 @@
28                 define( 'UPLOADS', UPLOADBLOGSDIR . "/{$wpdb->blogid}/files/" );
29  
30                 // Uploads dir relative to ABSPATH
31 -               if ( 'wp-content/blogs.dir' == UPLOADBLOGSDIR && ! defined( 'BLOGUPLOADDIR' ) )
32 -                       define( 'BLOGUPLOADDIR', WP_CONTENT_DIR . "/blogs.dir/{$wpdb->blogid}/files/" );
33 +               if ( ('wp-content/blogs.dir' == UPLOADBLOGSDIR  || '/var/lib/wordpress' == UPLOADBLOGSDIR) && ! defined( 'BLOGUPLOADDIR' ) )
34 +                       define( 'BLOGUPLOADDIR', "/var/lib/wordpress/{$wpdb->blogid}/files/" );
35         }
36  }
37  
This page took 0.067034 seconds and 3 git commands to generate.