Plugin Directory

Changeset 3273277


Ignore:
Timestamp:
04/15/2025 09:54:46 AM (11 months ago)
Author:
nahuai
Message:

update to 1.1.6

Location:
osom-login-page-customizer
Files:
17 added
3 edited

Legend:

Unmodified
Added
Removed
  • osom-login-page-customizer/trunk/README.txt

    r3202176 r3273277  
    44Tags:  Login, admin login, custom login, wordpress login, wp login, customize WordPress login page
    55Requires at least: 4.9
    6 Tested up to: 6.7
    7 Stable tag: 1.1.5
     6Tested up to: 6.8
     7Stable tag: 1.1.6
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    8383== Changelog ==
    8484
     85= 1.1.6 =
     86* Fix PHP notice.
     87
    8588= 1.1.5 =
    8689* Improve how handles the site logo.
  • osom-login-page-customizer/trunk/inc/osom-admin.php

    r2993829 r3273277  
    77
    88// If this file is called directly, abort.
    9 if ( ! defined( 'WPINC' ) ) {
     9if ( !defined( 'WPINC' ) ) {
    1010    die;
    1111}
     
    3333
    3434// Create new item in the admin menu
    35 if ( ! function_exists( __NAMESPACE__ . '\osom_lc_parent_page' ) ) {
     35if ( !function_exists( __NAMESPACE__ . '\osom_lc_parent_page' ) ) {
    3636
    3737    function osom_lc_parent_page() {
    3838
    39         if ( ! osom_lc_menu_exists( 'osom' ) ) {
     39        if ( !osom_lc_menu_exists( 'osom' ) ) {
    4040            add_menu_page(
    4141                'Osom',
     
    5252    add_action( 'admin_menu', __NAMESPACE__ . '\osom_lc_parent_page' );
    5353}
    54 if ( ! function_exists( __NAMESPACE__ . '\osom_lc_add_submenu' ) ) {
     54
     55if ( !function_exists( __NAMESPACE__ . '\osom_lc_add_submenu' ) ) {
    5556    function osom_lc_add_submenu() {
    5657        add_submenu_page(
     
    8586    do_settings_sections( 'osom_lc_main_menu' );
    8687    submit_button();
    87 
    8888}
    8989
     
    9696    add_settings_section( 'osom_lc_section', '', __NAMESPACE__ . '\osom_lc_section_callback', 'osom_lc_main_menu' );
    9797
    98     $settings = get_option( 'osom_lc_settings' );
    99 
    100     if ( ! isset( $settings['lostpassword'] ) ) {
     98    $settings = get_option( 'osom_lc_settings', array() );
     99
     100    if ( !is_array( $settings ) ) {
     101        $settings = array();
     102    }
     103
     104    if ( !isset( $settings['lostpassword'] ) ) {
    101105        $settings['lostpassword'] = 0;
    102106    }
    103     if ( ! isset( $settings['remember'] ) ) {
     107    if ( !isset( $settings['remember'] ) ) {
    104108        $settings['remember'] = 0;
    105109    }
    106     if ( ! isset( $settings['lostpassword'] ) ) {
     110    if ( !isset( $settings['lostpassword'] ) ) {
    107111        $settings['lostpassword'] = 0;
    108112    }
    109     if ( ! isset( $settings['backtoblog'] ) ) {
     113    if ( !isset( $settings['backtoblog'] ) ) {
    110114        $settings['backtoblog'] = '';
    111115    }
    112     if ( ! isset( $settings['langswitcher'] ) ) {
     116    if ( !isset( $settings['langswitcher'] ) ) {
    113117        $settings['langswitcher'] = '';
    114118    }
    115     if ( ! isset( $settings['backgroundcolor'] ) ) {
     119    if ( !isset( $settings['backgroundcolor'] ) ) {
    116120        $settings['backgroundcolor'] = '';
    117121    }
    118     if ( ! isset( $settings['formcolor'] ) ) {
     122    if ( !isset( $settings['formcolor'] ) ) {
    119123        $settings['formcolor'] = '';
    120124    }
    121     if ( ! isset( $settings['bordercolor'] ) ) {
     125    if ( !isset( $settings['bordercolor'] ) ) {
    122126        $settings['bordercolor'] = '';
    123127    }
    124     if ( ! isset( $settings['buttoncolor'] ) ) {
     128    if ( !isset( $settings['buttoncolor'] ) ) {
    125129        $settings['buttoncolor'] = '';
    126130    }
    127     if ( ! isset( $settings['loginurl'] ) ) {
     131    if ( !isset( $settings['loginurl'] ) ) {
    128132        $settings['loginurl'] = '';
    129133    }
     
    170174    );
    171175
    172     if ( $wp_version >= 5.9) {
     176    if ( $wp_version >= 5.9 ) {
    173177        add_settings_field(
    174178            'osom_lc_field_lang_switcher',
     
    262266        )
    263267    );
    264 
    265268}
    266269
     
    291294function osom_lc_fields_callback( $args ) {
    292295
    293     if ( ! isset( $args['placeholder'] ) ) {
     296    if ( !isset( $args['placeholder'] ) ) {
    294297        $args['placeholder'] = '';
    295298    }
     
    301304            <input type="checkbox" name="<?php echo esc_attr( $args['name'] ); ?>" <?php checked( $args['value'], 1 ); ?> value="1">
    302305            <?php
    303             break;
     306        break;
    304307
    305308        case 'color':
     
    307310            <input type="text" class="color-picker" name="<?php echo esc_attr( $args['name'] ); ?>" id='color-picker-<?php echo esc_attr( $args['idcolor'] ); ?>' value="<?php echo esc_attr( $args['value'] ); ?>" />
    308311            <?php
    309             break;
     312        break;
    310313
    311314        default:
    312             echo '<input type="text" name="' . esc_attr( $args['name'] ) . '" value="' . esc_attr( $args['value'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" size="60">';
    313             break;
    314     endswitch;
    315 
    316 }
    317 
    318 if ( ! function_exists( 'osom_lc_menu_exists' ) ) {
     315        echo '<input type="text" name="' . esc_attr( $args['name'] ) . '" value="' . esc_attr( $args['value'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" size="60">';
     316        break;
     317        endswitch;
     318
     319}
     320
     321if ( !function_exists( 'osom_lc_menu_exists' ) ) {
    319322    function osom_lc_menu_exists( $handle, $sub = false ) {
    320         if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
     323        if ( !is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
    321324            return false;
    322325        }
  • osom-login-page-customizer/trunk/osom-login-customizer.php

    r3202176 r3273277  
    66 * Plugin URI:        https://osompress.com
    77 * Description:       Osom Login Page Customizer lets you to easily customize the layout of the WordPress login page.
    8  * Version:           1.1.5
     8 * Version:           1.1.6
    99 * Author:            OsomPress
    1010 * Author URI:        https://osompress.com/plugins/osom-login-page-customizer
     
    2727}
    2828
    29 define( 'OSOM_LC_VERSION', '1.1.5' );
     29define( 'OSOM_LC_VERSION', '1.1.6' );
    3030
    3131add_action( 'init', __NAMESPACE__ . '\osom_lc_init' );
Note: See TracChangeset for help on using the changeset viewer.