Plugin Directory

Changeset 3402368


Ignore:
Timestamp:
11/25/2025 09:48:31 AM (3 months ago)
Author:
nahuai
Message:

Improve style enqueueing

Location:
osom-modal-login
Files:
22 added
2 edited

Legend:

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

    r3286350 r3402368  
    44Tags:  Login, modal, logout, login form, custom login, wordpress login, login popup, popup login form, modal popup login, login popup modal, registration, lost password
    55Requires at least: 5.0
    6 Tested up to: 6.8
    7 Stable tag: 1.5.1
     6Tested up to: 6.9
     7Stable tag: 1.5.2
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    123123== Changelog ==
    124124
     125= 1.5.2 =
     126* Improve style enqueueing (thanks @adriansoewono for the suggestion )
    125127= 1.5.1 =
    126128* Fix deprecation for PHP +8.1.
  • osom-modal-login/trunk/osom-modal-login.php

    r3273538 r3402368  
    66 * Plugin URI:        https://osompress.com
    77 * Description:       Osom Modal Login lets you easily create a modal box displaying the WordPress login form. It automatically adds a menu item named "Login" at the end of the selected menu which will launch the login modal box one you click on it.
    8  * Version:           1.5.1
     8 * Version:           1.5.2
    99 * Author:            OsomPress
    1010 * Author URI:        https://osompress.com
     
    2727}
    2828
    29 define( 'OSOM_ML_VERSION', '1.5.1' );
     29define( 'OSOM_ML_VERSION', '1.5.2' );
    3030
    3131add_action( 'init', __NAMESPACE__ . '\osom_ml_init' );
     
    4747function osom_ml_admin_styles() {
    4848    $plugin_url = plugin_dir_url( __FILE__ );
    49     wp_enqueue_style( 'osom-ml-admin-style', $plugin_url . '/assets/css/admin-osom-modal-login.css', OSOM_ML_VERSION, true );
     49    wp_enqueue_style( 'osom-ml-admin-style', $plugin_url . '/assets/css/admin-osom-modal-login.css', OSOM_ML_VERSION, 'all' );
    5050    wp_enqueue_style( 'dashicons' );
    5151}
     
    5555function osom_ml_styles() {
    5656    $plugin_url = plugin_dir_url( __FILE__ );
    57     wp_enqueue_style( 'osom-ml-style', $plugin_url . '/assets/css/osom-modal-login.css', OSOM_ML_VERSION, true );
     57    wp_enqueue_style( 'osom-ml-style', $plugin_url . '/assets/css/osom-modal-login.css', OSOM_ML_VERSION, 'all' );
    5858    wp_enqueue_style( 'dashicons' );
    5959}
     
    6464    $plugin_url = plugin_dir_url( __FILE__ );
    6565    wp_enqueue_script( 'osom-ml-script', $plugin_url . '/assets/js/osom-modal-login.js', '', OSOM_ML_VERSION, true );
    66 
    6766}
    6867
Note: See TracChangeset for help on using the changeset viewer.