Changeset 1675888
- Timestamp:
- 06/11/2017 09:35:37 AM (9 years ago)
- Location:
- ws-redirect-wp
- Files:
-
- 3 added
- 2 edited
- 9 copied
-
tags/1.0.3 (added)
-
tags/1.0.3/README.md (copied) (copied from ws-redirect-wp/trunk/README.md)
-
tags/1.0.3/admin (added)
-
tags/1.0.3/admin/index.php (copied) (copied from ws-redirect-wp/trunk/admin/index.php)
-
tags/1.0.3/admin/ws-redirect-wp-admin.php (copied) (copied from ws-redirect-wp/trunk/admin/ws-redirect-wp-admin.php)
-
tags/1.0.3/index.php (copied) (copied from ws-redirect-wp/trunk/index.php)
-
tags/1.0.3/languages (added)
-
tags/1.0.3/languages/ws-redirect-wp-et.mo (copied) (copied from ws-redirect-wp/trunk/languages/ws-redirect-wp-et.mo)
-
tags/1.0.3/languages/ws-redirect-wp-et.po (copied) (copied from ws-redirect-wp/trunk/languages/ws-redirect-wp-et.po)
-
tags/1.0.3/readme.txt (copied) (copied from ws-redirect-wp/trunk/readme.txt) (2 diffs)
-
tags/1.0.3/uninstall.php (copied) (copied from ws-redirect-wp/trunk/uninstall.php)
-
tags/1.0.3/ws-redirect-wp.php (copied) (copied from ws-redirect-wp/trunk/ws-redirect-wp.php) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/ws-redirect-wp.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ws-redirect-wp/tags/1.0.3/readme.txt
r1675846 r1675888 4 4 Requires at least: 4.4 5 5 Tested up to: 4.8 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 34 == Changelog == 35 35 36 = 1.0.3 = 37 38 Fix for not logged in users redirect 39 36 40 = 1.0.2 = 37 41 -
ws-redirect-wp/tags/1.0.3/ws-redirect-wp.php
r1675846 r1675888 4 4 * Plugin URI: http://www.silvermuru.ee/en/wordpress/plugins/ws-redirect-wp/ 5 5 * Description: Redirecting web page visitor to external page 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: WebShark 8 8 * Author URI: https://www.webshark.ee/ … … 16 16 public function __construct(){ 17 17 add_action( 'plugins_loaded', array( $this, 'ws_redirect_wp_load_textdomain' ) ); 18 add_action( 'plugins_loaded', array( $this, 'check_if_user_logged_in' ) );19 18 add_action( 'init', array( $this, 'ws_redirect_wp_to' ) ); 20 19 } … … 23 22 load_plugin_textdomain( 'ws-redirect-wp', false, plugin_basename( dirname( __FILE__ ) ) . '/languages/' ); 24 23 } 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 }35 24 36 25 public function ws_redirect_wp_to(){ -
ws-redirect-wp/trunk/readme.txt
r1675846 r1675888 4 4 Requires at least: 4.4 5 5 Tested up to: 4.8 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 34 == Changelog == 35 35 36 = 1.0.3 = 37 38 Fix for not logged in users redirect 39 36 40 = 1.0.2 = 37 41 -
ws-redirect-wp/trunk/ws-redirect-wp.php
r1675846 r1675888 4 4 * Plugin URI: http://www.silvermuru.ee/en/wordpress/plugins/ws-redirect-wp/ 5 5 * Description: Redirecting web page visitor to external page 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: WebShark 8 8 * Author URI: https://www.webshark.ee/ … … 16 16 public function __construct(){ 17 17 add_action( 'plugins_loaded', array( $this, 'ws_redirect_wp_load_textdomain' ) ); 18 add_action( 'plugins_loaded', array( $this, 'check_if_user_logged_in' ) );19 18 add_action( 'init', array( $this, 'ws_redirect_wp_to' ) ); 20 19 } … … 23 22 load_plugin_textdomain( 'ws-redirect-wp', false, plugin_basename( dirname( __FILE__ ) ) . '/languages/' ); 24 23 } 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 }35 24 36 25 public function ws_redirect_wp_to(){
Note: See TracChangeset
for help on using the changeset viewer.