close

Plugin Directory

Changeset 3506964


Ignore:
Timestamp:
04/15/2026 10:38:49 AM (3 days ago)
Author:
rafiq91
Message:

Update to version 8.6.9 from GitHub

Location:
directorist
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • directorist/tags/8.6.9/.distignore

    r3479029 r3506964  
    4747/README.md
    4848/node-update-notes.md
     49/CLAUDE.md
  • directorist/tags/8.6.9/config.php

    r3501495 r3506964  
    22// Plugin version.
    33if ( ! defined( 'ATBDP_VERSION' ) ) {
    4     define( 'ATBDP_VERSION', '8.6.8' );
     4    define( 'ATBDP_VERSION', '8.6.9' );
    55}
    66// Plugin Folder Path.
  • directorist/tags/8.6.9/directorist-base.php

    r3501495 r3506964  
    44 * Plugin URI: https://wpwax.com
    55 * Description: A comprehensive solution to create professional looking directory site of any kind. Like Yelp, Foursquare, etc.
    6  * Version: 8.6.8
     6 * Version: 8.6.9
    77 * Author: wpWax
    88 * Author URI: https://wpwax.com
  • directorist/tags/8.6.9/includes/classes/class-user.php

    r3478925 r3506964  
    301301                </td>
    302302            </tr>
    303             <?php $email_verify_checkbox = ob_get_clean(); ?>
     303            <?php
     304            $email_verify_checkbox = ob_get_clean();
     305            $allowed_tags          = array_merge(
     306                wp_kses_allowed_html( 'post' ),
     307                array(
     308                    'input' => array(
     309                        'type'    => true,
     310                        'name'    => true,
     311                        'id'      => true,
     312                        'value'   => true,
     313                        'checked' => true,
     314                    ),
     315                )
     316            );
     317            ?>
    304318            <script>
    305319                jQuery(($) => {
    306                     $('#your-profile .user-email-wrap, #createuser .user-pass2-wrap').after(`<?php
    307                         echo wp_kses_post( $email_verify_checkbox );
    308                     ?>`);
     320                    $('#your-profile .user-email-wrap, #createuser .user-pass2-wrap').after(`<?php echo wp_kses( $email_verify_checkbox, $allowed_tags ); ?>`);
    309321                });
    310322            </script>
  • directorist/tags/8.6.9/includes/rest-api/functions.php

    r3385954 r3506964  
    127127    $allowed_mime_types = get_allowed_mime_types();
    128128
    129     // Add extension to the name when downloaded from extension less url
    130     if ( strrpos( $file_array['name'], '.' ) === false ) {
    131         $mime_type          = mime_content_type( $file_array['tmp_name'] );
    132         $_mime_types        = array_flip( $allowed_mime_types );
    133         $extensions         = isset( $_mime_types[ $mime_type ] ) ? $_mime_types[ $mime_type ] : '';
    134         $extensions         = explode( '|', $extensions, 2 );
    135         $file_array['name'] .= '.' . $extensions[0];
     129    // Add extension to the name when downloaded from extension-less URL,
     130    // or when the URL path ends with a domain-like suffix (e.g. .com) that
     131    // is not a valid image extension — as happens with logo.dev URLs.
     132    $name_ext     = strtolower( pathinfo( $file_array['name'], PATHINFO_EXTENSION ) );
     133    $_mime_types  = array_flip( $allowed_mime_types );
     134    $ext_is_valid = false;
     135
     136    if ( $name_ext ) {
     137        foreach ( $allowed_mime_types as $exts => $mime ) {
     138            if ( in_array( $name_ext, explode( '|', $exts ), true ) ) {
     139                $ext_is_valid = true;
     140                break;
     141            }
     142        }
     143    }
     144
     145    if ( ! $ext_is_valid ) {
     146        $mime_type  = mime_content_type( $file_array['tmp_name'] );
     147        $extensions = isset( $_mime_types[ $mime_type ] ) ? $_mime_types[ $mime_type ] : '';
     148        $extensions = explode( '|', $extensions, 2 );
     149
     150        // Strip the invalid extension (e.g. ".com") before appending the real one.
     151        if ( $name_ext ) {
     152            $file_array['name'] = substr( $file_array['name'], 0, strrpos( $file_array['name'], '.' ) );
     153        }
     154
     155        if ( ! empty( $extensions[0] ) ) {
     156            $file_array['name'] .= '.' . $extensions[0];
     157        }
    136158    }
    137159
  • directorist/tags/8.6.9/languages/directorist.pot

    r3501495 r3506964  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2026-04-08 08:58+0000\n"
     9"POT-Creation-Date: 2026-04-15 10:10+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
  • directorist/tags/8.6.9/readme.txt

    r3501495 r3506964  
    66Tested up to: 6.9
    77Requires PHP: 7.0
    8 Stable tag: 8.6.8
     8Stable tag: 8.6.9
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    301301== Changelog ==
    302302
     303= 8.6.9 - Apr 15, 2026 =
     304
     305**Fixed**
     306 - Email verified checkbox not rendering in admin user profile. (#2812)
     307 - Fixed CSV import not downloading images from extension-less CDN URLs (e.g. logo.dev) (#2809)
     308
    303309= 8.6.8 - Apr 8, 2026 =
    304310
  • directorist/trunk/.distignore

    r3479029 r3506964  
    4747/README.md
    4848/node-update-notes.md
     49/CLAUDE.md
  • directorist/trunk/config.php

    r3501495 r3506964  
    22// Plugin version.
    33if ( ! defined( 'ATBDP_VERSION' ) ) {
    4     define( 'ATBDP_VERSION', '8.6.8' );
     4    define( 'ATBDP_VERSION', '8.6.9' );
    55}
    66// Plugin Folder Path.
  • directorist/trunk/directorist-base.php

    r3501495 r3506964  
    44 * Plugin URI: https://wpwax.com
    55 * Description: A comprehensive solution to create professional looking directory site of any kind. Like Yelp, Foursquare, etc.
    6  * Version: 8.6.8
     6 * Version: 8.6.9
    77 * Author: wpWax
    88 * Author URI: https://wpwax.com
  • directorist/trunk/includes/classes/class-user.php

    r3478925 r3506964  
    301301                </td>
    302302            </tr>
    303             <?php $email_verify_checkbox = ob_get_clean(); ?>
     303            <?php
     304            $email_verify_checkbox = ob_get_clean();
     305            $allowed_tags          = array_merge(
     306                wp_kses_allowed_html( 'post' ),
     307                array(
     308                    'input' => array(
     309                        'type'    => true,
     310                        'name'    => true,
     311                        'id'      => true,
     312                        'value'   => true,
     313                        'checked' => true,
     314                    ),
     315                )
     316            );
     317            ?>
    304318            <script>
    305319                jQuery(($) => {
    306                     $('#your-profile .user-email-wrap, #createuser .user-pass2-wrap').after(`<?php
    307                         echo wp_kses_post( $email_verify_checkbox );
    308                     ?>`);
     320                    $('#your-profile .user-email-wrap, #createuser .user-pass2-wrap').after(`<?php echo wp_kses( $email_verify_checkbox, $allowed_tags ); ?>`);
    309321                });
    310322            </script>
  • directorist/trunk/includes/rest-api/functions.php

    r3385954 r3506964  
    127127    $allowed_mime_types = get_allowed_mime_types();
    128128
    129     // Add extension to the name when downloaded from extension less url
    130     if ( strrpos( $file_array['name'], '.' ) === false ) {
    131         $mime_type          = mime_content_type( $file_array['tmp_name'] );
    132         $_mime_types        = array_flip( $allowed_mime_types );
    133         $extensions         = isset( $_mime_types[ $mime_type ] ) ? $_mime_types[ $mime_type ] : '';
    134         $extensions         = explode( '|', $extensions, 2 );
    135         $file_array['name'] .= '.' . $extensions[0];
     129    // Add extension to the name when downloaded from extension-less URL,
     130    // or when the URL path ends with a domain-like suffix (e.g. .com) that
     131    // is not a valid image extension — as happens with logo.dev URLs.
     132    $name_ext     = strtolower( pathinfo( $file_array['name'], PATHINFO_EXTENSION ) );
     133    $_mime_types  = array_flip( $allowed_mime_types );
     134    $ext_is_valid = false;
     135
     136    if ( $name_ext ) {
     137        foreach ( $allowed_mime_types as $exts => $mime ) {
     138            if ( in_array( $name_ext, explode( '|', $exts ), true ) ) {
     139                $ext_is_valid = true;
     140                break;
     141            }
     142        }
     143    }
     144
     145    if ( ! $ext_is_valid ) {
     146        $mime_type  = mime_content_type( $file_array['tmp_name'] );
     147        $extensions = isset( $_mime_types[ $mime_type ] ) ? $_mime_types[ $mime_type ] : '';
     148        $extensions = explode( '|', $extensions, 2 );
     149
     150        // Strip the invalid extension (e.g. ".com") before appending the real one.
     151        if ( $name_ext ) {
     152            $file_array['name'] = substr( $file_array['name'], 0, strrpos( $file_array['name'], '.' ) );
     153        }
     154
     155        if ( ! empty( $extensions[0] ) ) {
     156            $file_array['name'] .= '.' . $extensions[0];
     157        }
    136158    }
    137159
  • directorist/trunk/languages/directorist.pot

    r3501495 r3506964  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2026-04-08 08:58+0000\n"
     9"POT-Creation-Date: 2026-04-15 10:10+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
  • directorist/trunk/readme.txt

    r3501495 r3506964  
    66Tested up to: 6.9
    77Requires PHP: 7.0
    8 Stable tag: 8.6.8
     8Stable tag: 8.6.9
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    301301== Changelog ==
    302302
     303= 8.6.9 - Apr 15, 2026 =
     304
     305**Fixed**
     306 - Email verified checkbox not rendering in admin user profile. (#2812)
     307 - Fixed CSV import not downloading images from extension-less CDN URLs (e.g. logo.dev) (#2809)
     308
    303309= 8.6.8 - Apr 8, 2026 =
    304310
Note: See TracChangeset for help on using the changeset viewer.