• tititou36

    (@tititou36)


    Hi,

    In the 3 main functions of the plug-in you first test if:
    // Bail if earlier version than 3.4.0.
    if ( $wp_db_version < 20596 ) {
    return;
    }

    Then you test if $wp_db_version >= 20596.

    These latter tests could be removed to shrink a little your plug-in.

    https://ww.wp.xz.cn/plugins/wp-hide-dashboard/

The topic ‘Small code clean-up’ is closed to new replies.