Ticket #13021: 0001-Support-for-other-servers.patch

File 0001-Support-for-other-servers.patch, 1.3 KB (added by dz0ny, 2 years ago)

patch

  • wp-admin/includes/misc.php

    From b284882366fee7979770f45f33d32844c5021f70 Mon Sep 17 00:00:00 2001
    From: Janez Troha <janez.troha@gmail.com>
    Date: Thu, 15 Apr 2010 20:29:43 +0200
    Subject: [PATCH] Support for other servers
    
    ---
     wp-admin/includes/misc.php |    5 ++++-
     wp-config-sample.php       |    6 ++++++
     2 files changed, 10 insertions(+), 1 deletions(-)
    
    diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php
    index 1570b74..6e8ba77 100644
    a b  
    1414 * @return unknown 
    1515 */ 
    1616function got_mod_rewrite() { 
    17         $got_rewrite = apache_mod_loaded('mod_rewrite', true); 
     17   if ( defined ( 'FORCE_MOD_REWRITE' ) ) 
     18                $got_rewrite = true; 
     19        else 
     20                $got_rewrite = apache_mod_loaded('mod_rewrite', true); 
    1821        return apply_filters('got_rewrite', $got_rewrite); 
    1922} 
    2023 
  • wp-config-sample.php

    diff --git a/wp-config-sample.php b/wp-config-sample.php
    index 135ab05..3cbf0f7 100644
    a b $table_prefix = 'wp_'; 
    7272define ('WPLANG', ''); 
    7373 
    7474/** 
     75 * WordPress Support for nginx, lighttpd, cherokee. 
     76 * 
     77 * Forces preety links and removes index.php from URL. 
     78 */ 
     79define ('FORCE_MOD_REWRITE', true ); 
     80/** 
    7581 * For developers: WordPress debugging mode. 
    7682 * 
    7783 * Change this to true to enable the display of notices during development.