OSDN Git Service

make Rewrite_Command::apache_modules() private
authorscribu <mail@scribu.net>
Sun, 4 Aug 2013 21:47:00 +0000 (00:47 +0300)
committerscribu <mail@scribu.net>
Sun, 4 Aug 2013 21:47:02 +0000 (00:47 +0300)
other code has no business calling it

php/commands/rewrite.php

index b1c5a51..1e04593 100644 (file)
@@ -137,7 +137,7 @@ class Rewrite_Command extends WP_CLI_Command {
         * If this isn't done then the .htaccess rewrite rules won't be flushed out
         * to disk.
         */
-       public static function apache_modules() {
+       private static function apache_modules() {
                $mods = WP_CLI::get_config('apache_modules');
                if ( !empty( $mods ) && !function_exists( 'apache_get_modules' ) ) {
                        global $is_apache;