Version Description
- Performance updates, added a new 'Settings' page.
Download this release
Release Info
| Developer | shawn@eggplantstudios.ca |
| Plugin | |
| Version | 1.4.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.3.4 to 1.4.0
- css/eps_redirect.css +0 -0
- eps-301-redirects.php +4 -29
- js/scripts.js +0 -0
css/eps_redirect.css
CHANGED
|
File without changes
|
eps-301-redirects.php
CHANGED
|
@@ -49,7 +49,6 @@ class EPS_Redirects {
|
|
| 49 |
if(is_admin()){
|
| 50 |
add_action('admin_menu', array($this, 'add_plugin_page'));
|
| 51 |
add_action('admin_init', array($this, '_save'));
|
| 52 |
-
add_action('admin_init', array($this, 'check_version'));
|
| 53 |
add_action('wp_ajax_eps_redirect_get_new_entry', array($this, 'ajax_get_blank_entry') );
|
| 54 |
add_action('init', array($this, 'enqueue_resources'));
|
| 55 |
add_action('admin_footer_text', array($this, 'set_ajax_url'));
|
|
@@ -58,10 +57,12 @@ class EPS_Redirects {
|
|
| 58 |
add_action('init', array($this,'do_redirect'), 1); // Priority 1 for redirects.
|
| 59 |
}
|
| 60 |
|
| 61 |
-
public static function eps_redirect_activation() {
|
|
|
|
|
|
|
| 62 |
public static function eps_redirect_deactivation() {
|
| 63 |
//update_option( self::$option_slug, null );
|
| 64 |
-
update_option( 'eps_redirects_version', null );
|
| 65 |
}
|
| 66 |
|
| 67 |
|
|
@@ -591,32 +592,6 @@ function eps_prettify( $string ) {
|
|
| 591 |
|
| 592 |
|
| 593 |
|
| 594 |
-
// Run the plugin.
|
| 595 |
-
$EPS_Redirects = new EPS_Redirects();
|
| 596 |
-
?>_HTTP_CODE);
|
| 597 |
-
@curl_close($ch);
|
| 598 |
-
return $code;
|
| 599 |
-
}
|
| 600 |
-
|
| 601 |
-
}
|
| 602 |
-
}
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
/**
|
| 607 |
-
* Outputs an object or array in a readable form.
|
| 608 |
-
*
|
| 609 |
-
* @return void
|
| 610 |
-
* @param $string = the object to prettify; Typically a string.
|
| 611 |
-
* @author epstudios
|
| 612 |
-
*/
|
| 613 |
-
function eps_prettify( $string ) {
|
| 614 |
-
return ucwords( str_replace("_"," ",$string) );
|
| 615 |
-
}
|
| 616 |
-
|
| 617 |
-
|
| 618 |
-
|
| 619 |
-
|
| 620 |
// Run the plugin.
|
| 621 |
$EPS_Redirects = new EPS_Redirects();
|
| 622 |
?>
|
| 49 |
if(is_admin()){
|
| 50 |
add_action('admin_menu', array($this, 'add_plugin_page'));
|
| 51 |
add_action('admin_init', array($this, '_save'));
|
|
|
|
| 52 |
add_action('wp_ajax_eps_redirect_get_new_entry', array($this, 'ajax_get_blank_entry') );
|
| 53 |
add_action('init', array($this, 'enqueue_resources'));
|
| 54 |
add_action('admin_footer_text', array($this, 'set_ajax_url'));
|
| 57 |
add_action('init', array($this,'do_redirect'), 1); // Priority 1 for redirects.
|
| 58 |
}
|
| 59 |
|
| 60 |
+
public static function eps_redirect_activation() {
|
| 61 |
+
self::check_version();
|
| 62 |
+
}
|
| 63 |
public static function eps_redirect_deactivation() {
|
| 64 |
//update_option( self::$option_slug, null );
|
| 65 |
+
//update_option( 'eps_redirects_version', null );
|
| 66 |
}
|
| 67 |
|
| 68 |
|
| 592 |
|
| 593 |
|
| 594 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 595 |
// Run the plugin.
|
| 596 |
$EPS_Redirects = new EPS_Redirects();
|
| 597 |
?>
|
js/scripts.js
CHANGED
|
File without changes
|
