Plugin Directory

Changeset 2553218


Ignore:
Timestamp:
06/24/2021 08:48:18 AM (5 years ago)
Author:
MattGeri
Message:

Release - 2.4.1

Location:
wp-discussion-board/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-discussion-board/trunk/includes/classes/class-ct-db-registration.php

    r2515159 r2553218  
    998998         */
    999999        public function redirect_to_login_page() {
    1000 
    10011000            global $pagenow;
    10021001            $options = get_option( 'ctdb_options_settings' );
    10031002
    1004             // Check we're not trying to log out or recover password
    1005             if( isset( $_GET['action'] ) &&( $_GET['action'] == 'logout' || $_GET['action'] == 'lostpassword' || $_GET['action'] == 'rp' ) ) return;
     1003            // Check we're not trying to log out or recover password.
     1004            if (
     1005                ! empty( $_GET['action'] ) &&
     1006                (
     1007                    'logout' === sanitize_text_field( wp_unslash( $_GET['action'] ) ) ||
     1008                    'lostpassword' === sanitize_text_field( wp_unslash( $_GET['action'] ) ) ||
     1009                    'rp' === sanitize_text_field( wp_unslash( $_GET['action'] ) ) ||
     1010                    'resetpass' === sanitize_text_field( wp_unslash( $_GET['action'] ) )
     1011                )
     1012            ) {
     1013                return;
     1014            }
    10061015
    10071016            // If we're heading towards wp-login.php and our settings are right
  • wp-discussion-board/trunk/includes/config/config.php

    r2531338 r2553218  
    1919
    2020if ( ! defined( 'WPDBD_PLUGIN_VERSION' ) ) {
    21     define( 'WPDBD_PLUGIN_VERSION', '2.4' );
     21    define( 'WPDBD_PLUGIN_VERSION', '2.4.1' );
    2222}
  • wp-discussion-board/trunk/includes/helpers/customizer.php

    r2531338 r2553218  
    259259    return false;
    260260}
     261
     262/**
     263 * Enqueue the color picker scripts in case they are not already enqueued.
     264 *
     265 * @since 2.4.1
     266 */
     267function wpdbd_enqueue_color_picker() {
     268    wp_enqueue_style( 'wp-color-picker' );
     269    wp_enqueue_script( 'wp-color-picker' );
     270}
     271add_action( 'customize_controls_enqueue_scripts', 'wpdbd_enqueue_color_picker' );
  • wp-discussion-board/trunk/readme.txt

    r2531334 r2553218  
    66Tested up to: 5.7
    77Requires PHP: 5.2.4
    8 Stable tag: 2.4
     8Stable tag: 2.4.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    178178== Changelog ==
    179179
     180= 2.4.1, June 24 2021 =
     181* Fixed: Always enqueue customizer color picker as some themes don't include it
     182* Fixed: Allow user to reset password when forcing the plugin login form
     183
    180184= 2.4, May 13 2021 =
    181185* Major update, please test before upgrading
  • wp-discussion-board/trunk/wp-discussion-board.php

    r2531334 r2553218  
    44Plugin URI: https://wpdiscussionboard.com
    55Description: Provide a simple discussion board for your site
    6 Version: 2.4
     6Version: 2.4.1
    77Author: WP Discussion Board
    88Author URI: https://wpdiscussionboard.com
Note: See TracChangeset for help on using the changeset viewer.