Plugin Directory

Changeset 1280877


Ignore:
Timestamp:
11/06/2015 04:09:46 AM (10 years ago)
Author:
websightdesigns
Message:

version 1.0.6

Location:
wp-customize/trunk
Files:
4 edited

Legend:

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

    r1280448 r1280877  
    44http://www.websightdesigns.com/
    55
    6 @version 1.0.5
     6@version 1.0.6
    77
    88This plugin allows you to set up a custom login page and set a custom footer message in the WordPress Admin.
  • wp-customize/trunk/plugin-init.php

    r1280418 r1280877  
    88    return;
    99}
    10 
    11 /* Runs when plugin is activated */
    12 register_activation_hook(__FILE__,'wp_customize_install');
    13 
    14 /* Runs on plugin deactivation*/
    15 register_deactivation_hook( __FILE__, 'wp_customize_remove' );
    1610
    1711function wp_customize_install() {
     
    7670     * Configure apache rewrite rules
    7771     */
     72    $site_url_parts = explode('wp-admin/', $_SERVER['REQUEST_URI']);
     73    $site_path = $site_url_parts[0] . 'login/';
     74    $rel_site_path = substr($site_url_parts[0], 1);
    7875    $rewrite_rules = <<< EOD
    7976<IfModule mod_rewrite.c>
     
    8380RewriteCond %{QUERY_STRING} !(?:^)action=lostpassword
    8481RewriteCond %{HTTP_REFERER} !^http://(.*)?$servername [NC]
    85 RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
    86 RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
    87 RewriteRule ^(.*)$ /login/ [R=301,L]
     82RewriteCond %{REQUEST_URI} ^(.*)?{$rel_site_path}wp-login\.php(.*)$ [OR]
     83RewriteCond %{REQUEST_URI} ^(.*)?{$rel_site_path}wp-admin$
     84RewriteRule ^(.*)$ $site_path [R=301,L]
    8885</IfModule>
    8986EOD;
  • wp-customize/trunk/readme.txt

    r1280448 r1280877  
    55Requires at least: 3.5
    66Tested up to: 4.3.1
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5454== Changelog ==
    5555
     56= 1.0.6 =
     57* Fixes path issues with htaccess rules.
     58
    5659= 1.0.5 =
    57 * Fixing path issues with require_once() methods.
     60* Fixes path issues with require_once() methods.
    5861
    5962= 1.0.4 =
  • wp-customize/trunk/wp-customize.php

    r1280448 r1280877  
    22/**
    33 * @package WP_Customize
    4  * @version 1.0.5
     4 * @version 1.0.6
    55 */
    66
     
    99Description: This plugin allows you to customize the WordPress login page and set your own footer for the WordPress Admin.
    1010Author: WebSight Designs
    11 Version: 1.0.5
     11Version: 1.0.6
    1212Author URI: http://websightdesigns.com/
    1313License: GPL2
     
    4646
    4747require_once( plugin_dir_path( __FILE__ ) . 'plugin-init.php' );
     48
     49/* Runs when plugin is activated */
     50register_activation_hook(__FILE__,'wp_customize_install');
     51
     52/* Runs on plugin deactivation*/
     53register_deactivation_hook( __FILE__, 'wp_customize_remove' );
    4854
    4955/**
     
    7985        'media-upload',
    8086        'thickbox'
    81     ), '1.0.5', true );
     87    ), '1.0.6', true );
    8288}
    8389add_action( 'admin_enqueue_scripts', 'wpcustomize_admin_scripts' );
Note: See TracChangeset for help on using the changeset viewer.