Changeset 2870967
- Timestamp:
- 02/25/2023 11:50:24 AM (3 years ago)
- Location:
- custom-codes/trunk
- Files:
-
- 4 edited
-
custom-codes.php (modified) (1 diff)
-
lib/helper-functions.php (modified) (1 diff)
-
lib/release-codes.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-codes/trunk/custom-codes.php
r2865313 r2870967 17 17 * Text Domain: custom-codes 18 18 * Domain Path: /languages 19 * Version: 2.3. 319 * Version: 2.3.4 20 20 * 21 21 */ 22 22 defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); 23 define( 'CODES_VERSION', '2.3. 3' );23 define( 'CODES_VERSION', '2.3.4' ); 24 24 define( 'CODES_DEBUG', false ); 25 25 // Paths. -
custom-codes/trunk/lib/helper-functions.php
r2865313 r2870967 157 157 function codes_is_login_page() 158 158 { 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. 164 160 $filtered_abspath = str_replace( array( '\\', '/' ), DIRECTORY_SEPARATOR, ABSPATH ); 165 161 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 253 253 } 254 254 255 add_action( 'init', 'codes_release', 99999 ); 255 add_action( 'init', 'codes_release', 99 ); 256 // In some cases like custom login screens, it does not enqueue the styles. 256 257 // PHP RELEASE. 257 258 foreach ( $codes_posts as $code_post ) { -
custom-codes/trunk/readme.txt
r2865313 r2870967 5 5 Donate link: https://www.codekitwp.com/ 6 6 Requires PHP: 5.6 7 Tested up to: 6. 17 Tested up to: 6.2 8 8 Stable tag: trunk 9 9 License: MIT … … 143 143 144 144 == Changelog == 145 = 2.3.4 (2023-02-25 14:45 EET) = 146 * Tested on WordPress 6.2 147 * Custom login URLs detection improvements 148 145 149 = 2.3.3 (2023-02-14 20:54 EET) = 146 150 * Freemius SDK updated to 2.5.3
Note: See TracChangeset
for help on using the changeset viewer.