Plugin Directory

Changeset 953057


Ignore:
Timestamp:
07/22/2014 09:09:36 PM (12 years ago)
Author:
plankdesign
Message:

added automatic rewrite flush, updated readmes

Location:
wp-portability/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-portability/trunk/README.md

    r953050 r953057  
    11# WP-Portability
    2 Contributors: frasmage
    3 Author: Plank Design Inc.
    4 Tags: portability, installation, mobility, url, shortcode, portable, domain-agnostic, relocation
    5 Requires at least: 3.1
    6 Tested up to: 3.9
    7 Stable tag: 1.0
    8 License: GPLv2 or later
     2* Contributors: frasmage
     3* Author: Plank Design Inc.
     4* Tags: portability, installation, mobility, url, shortcode, portable, domain-agnostic, relocation
     5* Requires at least: 3.1
     6* Tested up to: 3.9
     7* Stable tag: 1.0
     8* License: GPLv2 or later
     9
     10WP-Portability is a plugin designed to quietly make your site more portable.
    911
    1012## Description
     
    1214### Summary
    1315
    14 WP-Portability is a plugin designed to quietly make your site more portable. It is to designed to facilitate the work that needs to be done when and if a website needs to be moved to another directory or server or if the domain name changes. This plugin does not assist with the actual relocation of the WordPress. Instead, it makes WordPress much less attached and dependant on its install directory and domain name making the process much easier to do.
     16WP-Portability is a plugin designed to quietly make your site more portable. It is to designed to facilitate the work that needs to be done to be move a wordpress install to another directory or server or domain name. It makes WordPress much less attached and dependant on its install directory and domain name.
    1517
    1618Though anyone can make use of WP-Portability, it was designed with developers in mind. It greatly facilitates designing sites locally amongst a team of developers, moving the site to a staging server and finally pushing it live.
  • wp-portability/trunk/readme.txt

    r953054 r953057  
    11=== WP-Portability ===
    2 Contributors: frasmage
     2Contributors: frasmage, plankdesign
    33Author: Plank Design Inc.
    44Tags: portability, installation, mobility, url, shortcode, portable, domain-agnostic, relocation
     
    1414= Summary =
    1515
    16 WP-Portability is a plugin designed to quietly make your site more portable. It is to designed to facilitate the work that needs to be done when and if a website needs to be moved to another directory or server or if the domain name changes. This plugin does not assist with the actual relocation of the WordPress. Instead, it makes WordPress much less attached and dependant on its install directory and domain name making the process much easier to do.
     16WP-Portability is a plugin designed to quietly make your site more portable. It is to designed to facilitate the work that needs to be done to be move a wordpress install to another directory or server or domain name. It makes WordPress much less attached and dependant on its install directory and domain name.
    1717
    1818Though anyone can make use of WP-Portability, it was designed with developers in mind. It greatly facilitates designing sites locally amongst a team of developers, moving the site to a staging server and finally pushing it live.
     
    2727
    2828== Installation ==
     29
     30= Installation =
    2931
    30321. Make sure you are using WordPress 3.1 or later and that your server is running PHP5
  • wp-portability/trunk/wp-portability.php

    r953033 r953057  
    113113        $shortcode = LocalURLShortcode::getInstance();
    114114        $shortcode->autoinsert = $this->settings['url_shortcode_inject'];
     115
     116        register_activation_hook(__FILE__, array($this, '_flushRewrites'));
    115117    }
    116118
     
    153155            }
    154156        }
     157
    155158        return $input;
    156159    }
     
    247250    }
    248251
     252    /**
     253     * Hook: Flush rewrite rules
     254     */
     255    public function _flushRewrites(){
     256        global $wp_rewrites;
     257        $wp_rewrites->flush_rules(true);
     258    }
     259
    249260}
    250261
Note: See TracChangeset for help on using the changeset viewer.