Plugin Directory

Changeset 2870967


Ignore:
Timestamp:
02/25/2023 11:50:24 AM (3 years ago)
Author:
bilaltas
Message:

Custom login URLs detection improvements

Location:
custom-codes/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • custom-codes/trunk/custom-codes.php

    r2865313 r2870967  
    1717 * Text Domain: custom-codes
    1818 * Domain Path: /languages
    19  * Version: 2.3.3
     19 * Version: 2.3.4
    2020 *
    2121 */
    2222defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
    23 define( 'CODES_VERSION', '2.3.3' );
     23define( 'CODES_VERSION', '2.3.4' );
    2424define( 'CODES_DEBUG', false );
    2525// Paths.
  • custom-codes/trunk/lib/helper-functions.php

    r2865313 r2870967  
    157157function codes_is_login_page()
    158158{
    159     // Use the brand new function.
    160     if ( version_compare( get_bloginfo( 'version' ), '6.1.0', '>=' ) ) {
    161         return is_login();
    162     }
    163     // For below WP 6.1.0.
     159    // Since is_login() is not detecting custom login URLs, we're detecting related included files.
    164160    $filtered_abspath = str_replace( array( '\\', '/' ), DIRECTORY_SEPARATOR, ABSPATH );
    165161    return in_array( $filtered_abspath . 'wp-login.php', get_included_files(), true ) || in_array( $filtered_abspath . 'wp-register.php', get_included_files(), true ) || isset( $GLOBALS['pagenow'] ) && 'wp-login.php' === $GLOBALS['pagenow'] || isset( $_SERVER['PHP_SELF'] ) && '/wp-login.php' === $_SERVER['PHP_SELF'];
  • custom-codes/trunk/lib/release-codes.php

    r2536101 r2870967  
    253253}
    254254
    255 add_action( 'init', 'codes_release', 99999 );
     255add_action( 'init', 'codes_release', 99 );
     256// In some cases like custom login screens, it does not enqueue the styles.
    256257// PHP RELEASE.
    257258foreach ( $codes_posts as $code_post ) {
  • custom-codes/trunk/readme.txt

    r2865313 r2870967  
    55Donate link: https://www.codekitwp.com/
    66Requires PHP: 5.6
    7 Tested up to: 6.1
     7Tested up to: 6.2
    88Stable tag: trunk
    99License: MIT
     
    143143
    144144== Changelog ==
     145= 2.3.4 (2023-02-25 14:45 EET) =
     146* Tested on WordPress 6.2
     147* Custom login URLs detection improvements
     148
    145149= 2.3.3 (2023-02-14 20:54 EET) =
    146150* Freemius SDK updated to 2.5.3
Note: See TracChangeset for help on using the changeset viewer.