Changeset 2520259
- Timestamp:
- 04/23/2021 08:37:42 AM (5 years ago)
- Location:
- doccheck-login/tags/1.0.9
- Files:
-
- 5 edited
- 1 copied
-
. (copied) (copied from doccheck-login/trunk)
-
README.txt (modified) (2 diffs)
-
client/class-dcl-client.php (modified) (9 diffs)
-
dc-login.php (modified) (1 diff)
-
includes/class-dcl-base.php (modified) (1 diff)
-
includes/class-dcl.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doccheck-login/tags/1.0.9/README.txt
r2349143 r2520259 3 3 Tags: DocCheck, login, medical, authentication, hcp, hwg, healthcare, OAuth2 4 4 Requires at least: 4.5 5 Tested up to: 5. 4.26 Stable tag: 1.0. 85 Tested up to: 5.7.1 6 Stable tag: 1.0.9 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 51 51 == Changelog == 52 = 1.0.9 = 53 * Fix active session detecting by Wordpress Site Health 54 * Tested up to 5.7.1 55 52 56 = 1.0.8 = 53 57 * Bug fix profession routing and profession access management -
doccheck-login/tags/1.0.9/client/class-dcl-client.php
r2349143 r2520259 36 36 * Initialize the class and set its properties. 37 37 * 38 * @param string $plugin_name The name of the plugin.39 * @param string $version The version of this plugin.38 * @param string $plugin_name The name of the plugin. 39 * @param string $version The version of this plugin. 40 40 * 41 41 * @since 1.0.0 … … 47 47 $this->plugin_name = $plugin_name; 48 48 $this->version = $version; 49 49 50 } 50 51 … … 235 236 } 236 237 237 public function register_my_session() {238 if ( ! session_id() ) {239 session_start();240 }241 }242 243 238 /** 244 239 * "Login" DocCheck user. … … 301 296 ); 302 297 303 298 session_start(); 304 299 // Success 305 300 // Received access token … … 308 303 $this->dcl_set_session_token( $response->access_token ); 309 304 310 if ( ! session_id() ) {311 session_start();312 }313 314 305 if ( $occupation_activated ) { 315 306 if ( $occupation_profession_parent_id != null ) { … … 327 318 } 328 319 329 320 session_write_close(); 330 321 if ( count( $occupations_routing ) > 0 ) { 331 322 foreach ( $occupations_routing as $item ) { … … 351 342 // Remove parameters from URL 352 343 wp_redirect( $redirect_permalink ); 344 353 345 exit; 354 346 } … … 378 370 // If the nonce is okay, remove the logged in cookie 379 371 if ( wp_verify_nonce( $_REQUEST['dcl_logout_nonce'], 'dcl_logout_nonce' ) ) { 372 session_start(); 380 373 session_destroy(); 381 374 } … … 478 471 $redirect_url = get_permalink(); 479 472 $login_url = $this->dcl_get_login_permalink( $redirect_url ); 480 473 session_start(); 481 474 // Set redirect cookie 482 475 $this->dcl_set_session_redirect_url( $redirect_url ); 483 476 session_write_close(); 484 477 wp_redirect( $login_url ); 485 478 } -
doccheck-login/tags/1.0.9/dc-login.php
r2349143 r2520259 19 19 * Plugin Name: DocCheck Login 20 20 * Description: The official DocCheck plug-in enables the authentication of certified healthcare professionals and facilitates the integration of the DocCheck login. 21 * Version: 1.0. 821 * Version: 1.0.9 22 22 * Author: antwerpes ag <[email protected]> 23 23 * Author URI: https://antwerpes.com -
doccheck-login/tags/1.0.9/includes/class-dcl-base.php
r2340836 r2520259 302 302 public function dcl_start_session() { 303 303 if ( ! isset( $_SESSION ) ) { 304 session_set_cookie_params( 86400 );305 304 session_start(); 305 session_write_close(); 306 306 } 307 307 } -
doccheck-login/tags/1.0.9/includes/class-dcl.php
r2349143 r2520259 66 66 67 67 $this->plugin_name = 'dc-login'; 68 $this->version = '1.0. 8';68 $this->version = '1.0.9'; 69 69 70 70 $this->set_loader(); … … 160 160 161 161 $this->loader->add_action( 'init', $plugin_public, 'dcl_start_session' ); 162 $this->loader->add_action( 'init', $plugin_public, 'register_my_session' );163 162 $this->loader->add_action( 'pre_get_posts', $plugin_public, 'dcl_filter_search_results' ); 164 163 $this->loader->add_filter( 'wp_get_nav_menu_items', $plugin_public, 'dcl_filter_menus' );
Note: See TracChangeset
for help on using the changeset viewer.