Plugin Directory

Changeset 3834827


Ignore:
Timestamp:
11/30/2026 10:34:25 AM (less than one hour ago)
Author:
brainstormworg
Message:

Update to version 1.13.4 from GitHub

Location:
suredash
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • suredash/tags/1.13.4/changelog.txt

    r3822660 r3834827  
    11*** SureDash Changelog ***
     2= 2026-11-30 - version 1.13.4 =
     3* Fix: This update addressed a security bug. Props to Patchstack for reporting it responsibly to our team. Please make sure you are using the latest version on your website.
     4
    25= 2026-11-25 - version 1.13.3 =
    36* Fix: This update addressed security bugs. Props to Patchstack for reporting them responsibly to our team. Please make sure you are using the latest version on your website.
  • suredash/tags/1.13.4/core/routers/misc.php

    r3822660 r3834827  
    261261                $base_id     = ! empty( $_POST['base_id'] ) ? absint( $_POST['base_id'] ) : 0;
    262262                $taxonomy    = ! empty( $_POST['taxonomy'] ) ? sanitize_key( wp_unslash( $_POST['taxonomy'] ) ) : SUREDASHBOARD_FEED_TAXONOMY;
    263                 $post_type   = ! empty( $_POST['post_type'] ) ? sanitize_key( wp_unslash( $_POST['post_type'] ) ) : SUREDASHBOARD_FEED_POST_TYPE;
    264263                $category_id = ! empty( $_POST['category'] ) ? absint( $_POST['category'] ) : 0;
    265264                $paged       = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
    … …  
    305304                $prefilter_cap = max( $page_size, $prefilter_cap );
    306305
     306                // Post types this request may list. Never taken from the request: the feed
     307                // lists community posts, a profile uses the same filters as its first page.
     308                $allowed_types = [ SUREDASHBOARD_FEED_POST_TYPE ];
     309
    307310                if ( $user_id ) {
    308                         $result = Controller::get_user_query_data(
    309                                 'Feeds',
    310                                 apply_filters(
    311                                         'suredashboard_user_queried_post_args',
    312                                         [
    313                                                 'post_types'     => [ $post_type ],
    314                                                 'user_id'        => $user_id,
    315                                                 'posts_per_page' => $prefilter_cap,
    316                                                 'paged'          => 1,
    317                                         ]
    318                                 )
     311                        $user_args     = (array) apply_filters(
     312                                'suredashboard_user_queried_post_args',
     313                                [
     314                                        'post_types'     => apply_filters( 'suredashboard_user_posts_within', $allowed_types ),
     315                                        'user_id'        => $user_id,
     316                                        'posts_per_page' => $prefilter_cap,
     317                                        'paged'          => 1,
     318                                ]
    319319                        );
     320                        $allowed_types = (array) ( $user_args['post_types'] ?? [] );
     321                        $result        = Controller::get_user_query_data( 'Feeds', $user_args );
    320322                } else {
    321323                        $query_args = [
    322324                                'category_id'    => $category_id,
    323                                 'post_type'      => $post_type,
     325                                'post_type'      => SUREDASHBOARD_FEED_POST_TYPE,
    324326                                'paged'          => 1,
    325327                                'taxonomy'       => $taxonomy,
    … …  
    348350                                array_filter(
    349351                                        $result,
    350                                         static function ( $post ) {
     352                                        static function ( $post ) use ( $allowed_types ) {
    351353                                                $post_id = absint( $post['ID'] ?? 0 );
    352                                                 if ( ! $post_id ) {
     354                                                if ( ! $post_id || ! in_array( $post['post_type'] ?? '', $allowed_types, true ) ) {
    353355                                                        return false;
    354356                                                }
  • suredash/tags/1.13.4/readme.txt

    r3822660 r3834827  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.13.3
     7Stable tag: 1.13.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    162162
    163163== Changelog ==
     164= 2026-11-30 - version 1.13.4 =
     165* Fix: This update addressed a security bug. Props to Patchstack for reporting it responsibly to our team. Please make sure you are using the latest version on your website.
     166
    164167= 2026-11-25 - version 1.13.3 =
    165168* Fix: This update addressed security bugs. Props to Patchstack for reporting them responsibly to our team. Please make sure you are using the latest version on your website.
  • suredash/tags/1.13.4/suredash.php

    r3822660 r3834827  
    66 * Author: SureDash
    77 * Author URI: https://suredash.com/
    8  * Version: 1.13.3
     8 * Version: 1.13.4
    99 * License: GPL v2
    1010 * Text Domain: suredash
    … …  
    1717 * Set constants.
    1818 */
    19 define( 'SUREDASHBOARD_VER', '1.13.3' );
     19define( 'SUREDASHBOARD_VER', '1.13.4' );
    2020define( 'SUREDASHBOARD_FILE', __FILE__ );
    2121define( 'SUREDASH_PRO_MINIMUM_VER', '1.12.1' );
  • suredash/trunk/changelog.txt

    r3822660 r3834827  
    11*** SureDash Changelog ***
     2= 2026-11-30 - version 1.13.4 =
     3* Fix: This update addressed a security bug. Props to Patchstack for reporting it responsibly to our team. Please make sure you are using the latest version on your website.
     4
    25= 2026-11-25 - version 1.13.3 =
    36* Fix: This update addressed security bugs. Props to Patchstack for reporting them responsibly to our team. Please make sure you are using the latest version on your website.
  • suredash/trunk/core/routers/misc.php

    r3822660 r3834827  
    261261                $base_id     = ! empty( $_POST['base_id'] ) ? absint( $_POST['base_id'] ) : 0;
    262262                $taxonomy    = ! empty( $_POST['taxonomy'] ) ? sanitize_key( wp_unslash( $_POST['taxonomy'] ) ) : SUREDASHBOARD_FEED_TAXONOMY;
    263                 $post_type   = ! empty( $_POST['post_type'] ) ? sanitize_key( wp_unslash( $_POST['post_type'] ) ) : SUREDASHBOARD_FEED_POST_TYPE;
    264263                $category_id = ! empty( $_POST['category'] ) ? absint( $_POST['category'] ) : 0;
    265264                $paged       = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
    … …  
    305304                $prefilter_cap = max( $page_size, $prefilter_cap );
    306305
     306                // Post types this request may list. Never taken from the request: the feed
     307                // lists community posts, a profile uses the same filters as its first page.
     308                $allowed_types = [ SUREDASHBOARD_FEED_POST_TYPE ];
     309
    307310                if ( $user_id ) {
    308                         $result = Controller::get_user_query_data(
    309                                 'Feeds',
    310                                 apply_filters(
    311                                         'suredashboard_user_queried_post_args',
    312                                         [
    313                                                 'post_types'     => [ $post_type ],
    314                                                 'user_id'        => $user_id,
    315                                                 'posts_per_page' => $prefilter_cap,
    316                                                 'paged'          => 1,
    317                                         ]
    318                                 )
     311                        $user_args     = (array) apply_filters(
     312                                'suredashboard_user_queried_post_args',
     313                                [
     314                                        'post_types'     => apply_filters( 'suredashboard_user_posts_within', $allowed_types ),
     315                                        'user_id'        => $user_id,
     316                                        'posts_per_page' => $prefilter_cap,
     317                                        'paged'          => 1,
     318                                ]
    319319                        );
     320                        $allowed_types = (array) ( $user_args['post_types'] ?? [] );
     321                        $result        = Controller::get_user_query_data( 'Feeds', $user_args );
    320322                } else {
    321323                        $query_args = [
    322324                                'category_id'    => $category_id,
    323                                 'post_type'      => $post_type,
     325                                'post_type'      => SUREDASHBOARD_FEED_POST_TYPE,
    324326                                'paged'          => 1,
    325327                                'taxonomy'       => $taxonomy,
    … …  
    348350                                array_filter(
    349351                                        $result,
    350                                         static function ( $post ) {
     352                                        static function ( $post ) use ( $allowed_types ) {
    351353                                                $post_id = absint( $post['ID'] ?? 0 );
    352                                                 if ( ! $post_id ) {
     354                                                if ( ! $post_id || ! in_array( $post['post_type'] ?? '', $allowed_types, true ) ) {
    353355                                                        return false;
    354356                                                }
  • suredash/trunk/readme.txt

    r3822660 r3834827  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.13.3
     7Stable tag: 1.13.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    162162
    163163== Changelog ==
     164= 2026-11-30 - version 1.13.4 =
     165* Fix: This update addressed a security bug. Props to Patchstack for reporting it responsibly to our team. Please make sure you are using the latest version on your website.
     166
    164167= 2026-11-25 - version 1.13.3 =
    165168* Fix: This update addressed security bugs. Props to Patchstack for reporting them responsibly to our team. Please make sure you are using the latest version on your website.
  • suredash/trunk/suredash.php

    r3822660 r3834827  
    66 * Author: SureDash
    77 * Author URI: https://suredash.com/
    8  * Version: 1.13.3
     8 * Version: 1.13.4
    99 * License: GPL v2
    1010 * Text Domain: suredash
    … …  
    1717 * Set constants.
    1818 */
    19 define( 'SUREDASHBOARD_VER', '1.13.3' );
     19define( 'SUREDASHBOARD_VER', '1.13.4' );
    2020define( 'SUREDASHBOARD_FILE', __FILE__ );
    2121define( 'SUREDASH_PRO_MINIMUM_VER', '1.12.1' );
Note: See TracChangeset for help on using the changeset viewer.