Plugin Directory

Changeset 1675888


Ignore:
Timestamp:
06/11/2017 09:35:37 AM (9 years ago)
Author:
silvermuru
Message:

1.0.3 with not logged in users redirect fix

Location:
ws-redirect-wp
Files:
3 added
2 edited
9 copied

Legend:

Unmodified
Added
Removed
  • ws-redirect-wp/tags/1.0.3/readme.txt

    r1675846 r1675888  
    44Requires at least: 4.4
    55Tested up to: 4.8
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3434== Changelog ==
    3535
     36= 1.0.3 =
     37
     38Fix for not logged in users redirect
     39
    3640= 1.0.2 =
    3741
  • ws-redirect-wp/tags/1.0.3/ws-redirect-wp.php

    r1675846 r1675888  
    44* Plugin URI: http://www.silvermuru.ee/en/wordpress/plugins/ws-redirect-wp/
    55* Description: Redirecting web page visitor to external page
    6 * Version: 1.0.2
     6* Version: 1.0.3
    77* Author: WebShark
    88* Author URI: https://www.webshark.ee/
     
    1616    public function __construct(){
    1717        add_action( 'plugins_loaded', array( $this, 'ws_redirect_wp_load_textdomain' ) );
    18         add_action( 'plugins_loaded', array( $this, 'check_if_user_logged_in' ) );
    1918        add_action( 'init', array( $this, 'ws_redirect_wp_to' ) );
    2019    }
     
    2322      load_plugin_textdomain( 'ws-redirect-wp', false, plugin_basename( dirname( __FILE__ ) ) . '/languages/' );
    2423    }
    25 
    26     public function check_if_user_logged_in(){
    27         if ( !is_user_logged_in() ) {
    28             global $pagenow;
    29             if ( 'wp-login.php' !== $pagenow ){
    30                 wp_redirect( wp_login_url() . '?message=wsredirect-wp-page' );
    31                 exit;
    32             }
    33         }
    34     }
    3524   
    3625    public function ws_redirect_wp_to(){
  • ws-redirect-wp/trunk/readme.txt

    r1675846 r1675888  
    44Requires at least: 4.4
    55Tested up to: 4.8
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3434== Changelog ==
    3535
     36= 1.0.3 =
     37
     38Fix for not logged in users redirect
     39
    3640= 1.0.2 =
    3741
  • ws-redirect-wp/trunk/ws-redirect-wp.php

    r1675846 r1675888  
    44* Plugin URI: http://www.silvermuru.ee/en/wordpress/plugins/ws-redirect-wp/
    55* Description: Redirecting web page visitor to external page
    6 * Version: 1.0.2
     6* Version: 1.0.3
    77* Author: WebShark
    88* Author URI: https://www.webshark.ee/
     
    1616    public function __construct(){
    1717        add_action( 'plugins_loaded', array( $this, 'ws_redirect_wp_load_textdomain' ) );
    18         add_action( 'plugins_loaded', array( $this, 'check_if_user_logged_in' ) );
    1918        add_action( 'init', array( $this, 'ws_redirect_wp_to' ) );
    2019    }
     
    2322      load_plugin_textdomain( 'ws-redirect-wp', false, plugin_basename( dirname( __FILE__ ) ) . '/languages/' );
    2423    }
    25 
    26     public function check_if_user_logged_in(){
    27         if ( !is_user_logged_in() ) {
    28             global $pagenow;
    29             if ( 'wp-login.php' !== $pagenow ){
    30                 wp_redirect( wp_login_url() . '?message=wsredirect-wp-page' );
    31                 exit;
    32             }
    33         }
    34     }
    3524   
    3625    public function ws_redirect_wp_to(){
Note: See TracChangeset for help on using the changeset viewer.