Changeset 1280877
- Timestamp:
- 11/06/2015 04:09:46 AM (10 years ago)
- Location:
- wp-customize/trunk
- Files:
-
- 4 edited
-
README.md (modified) (1 diff)
-
plugin-init.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-customize.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-customize/trunk/README.md
r1280448 r1280877 4 4 http://www.websightdesigns.com/ 5 5 6 @version 1.0. 56 @version 1.0.6 7 7 8 8 This 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 8 8 return; 9 9 } 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' );16 10 17 11 function wp_customize_install() { … … 76 70 * Configure apache rewrite rules 77 71 */ 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); 78 75 $rewrite_rules = <<< EOD 79 76 <IfModule mod_rewrite.c> … … 83 80 RewriteCond %{QUERY_STRING} !(?:^)action=lostpassword 84 81 RewriteCond %{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]82 RewriteCond %{REQUEST_URI} ^(.*)?{$rel_site_path}wp-login\.php(.*)$ [OR] 83 RewriteCond %{REQUEST_URI} ^(.*)?{$rel_site_path}wp-admin$ 84 RewriteRule ^(.*)$ $site_path [R=301,L] 88 85 </IfModule> 89 86 EOD; -
wp-customize/trunk/readme.txt
r1280448 r1280877 5 5 Requires at least: 3.5 6 6 Tested up to: 4.3.1 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 54 54 == Changelog == 55 55 56 = 1.0.6 = 57 * Fixes path issues with htaccess rules. 58 56 59 = 1.0.5 = 57 * Fix ingpath issues with require_once() methods.60 * Fixes path issues with require_once() methods. 58 61 59 62 = 1.0.4 = -
wp-customize/trunk/wp-customize.php
r1280448 r1280877 2 2 /** 3 3 * @package WP_Customize 4 * @version 1.0. 54 * @version 1.0.6 5 5 */ 6 6 … … 9 9 Description: This plugin allows you to customize the WordPress login page and set your own footer for the WordPress Admin. 10 10 Author: WebSight Designs 11 Version: 1.0. 511 Version: 1.0.6 12 12 Author URI: http://websightdesigns.com/ 13 13 License: GPL2 … … 46 46 47 47 require_once( plugin_dir_path( __FILE__ ) . 'plugin-init.php' ); 48 49 /* Runs when plugin is activated */ 50 register_activation_hook(__FILE__,'wp_customize_install'); 51 52 /* Runs on plugin deactivation*/ 53 register_deactivation_hook( __FILE__, 'wp_customize_remove' ); 48 54 49 55 /** … … 79 85 'media-upload', 80 86 'thickbox' 81 ), '1.0. 5', true );87 ), '1.0.6', true ); 82 88 } 83 89 add_action( 'admin_enqueue_scripts', 'wpcustomize_admin_scripts' );
Note: See TracChangeset
for help on using the changeset viewer.