Changeset 3834827
- Timestamp:
- 11/30/2026 10:34:25 AM (less than one hour ago)
- Location:
- suredash
- Files:
-
- 8 edited
- 1 copied
-
tags/1.13.4 (copied) (copied from suredash/trunk )
-
tags/1.13.4/changelog.txt (modified) (1 diff)
-
tags/1.13.4/core/routers/misc.php (modified) (3 diffs)
-
tags/1.13.4/readme.txt (modified) (2 diffs)
-
tags/1.13.4/suredash.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/core/routers/misc.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/suredash.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
suredash/tags/1.13.4/changelog.txt
r3822660 r3834827 1 1 *** 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 2 5 = 2026-11-25 - version 1.13.3 = 3 6 * 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 261 261 $base_id = ! empty( $_POST['base_id'] ) ? absint( $_POST['base_id'] ) : 0; 262 262 $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;264 263 $category_id = ! empty( $_POST['category'] ) ? absint( $_POST['category'] ) : 0; 265 264 $paged = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1; … … 305 304 $prefilter_cap = max( $page_size, $prefilter_cap ); 306 305 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 307 310 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 ] 319 319 ); 320 $allowed_types = (array) ( $user_args['post_types'] ?? [] ); 321 $result = Controller::get_user_query_data( 'Feeds', $user_args ); 320 322 } else { 321 323 $query_args = [ 322 324 'category_id' => $category_id, 323 'post_type' => $post_type,325 'post_type' => SUREDASHBOARD_FEED_POST_TYPE, 324 326 'paged' => 1, 325 327 'taxonomy' => $taxonomy, … … 348 350 array_filter( 349 351 $result, 350 static function ( $post ) {352 static function ( $post ) use ( $allowed_types ) { 351 353 $post_id = absint( $post['ID'] ?? 0 ); 352 if ( ! $post_id ) {354 if ( ! $post_id || ! in_array( $post['post_type'] ?? '', $allowed_types, true ) ) { 353 355 return false; 354 356 } -
suredash/tags/1.13.4/readme.txt
r3822660 r3834827 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.13. 37 Stable tag: 1.13.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 162 162 163 163 == 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 164 167 = 2026-11-25 - version 1.13.3 = 165 168 * 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 6 6 * Author: SureDash 7 7 * Author URI: https://suredash.com/ 8 * Version: 1.13. 38 * Version: 1.13.4 9 9 * License: GPL v2 10 10 * Text Domain: suredash … … 17 17 * Set constants. 18 18 */ 19 define( 'SUREDASHBOARD_VER', '1.13. 3' );19 define( 'SUREDASHBOARD_VER', '1.13.4' ); 20 20 define( 'SUREDASHBOARD_FILE', __FILE__ ); 21 21 define( 'SUREDASH_PRO_MINIMUM_VER', '1.12.1' ); -
suredash/trunk/changelog.txt
r3822660 r3834827 1 1 *** 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 2 5 = 2026-11-25 - version 1.13.3 = 3 6 * 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 261 261 $base_id = ! empty( $_POST['base_id'] ) ? absint( $_POST['base_id'] ) : 0; 262 262 $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;264 263 $category_id = ! empty( $_POST['category'] ) ? absint( $_POST['category'] ) : 0; 265 264 $paged = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1; … … 305 304 $prefilter_cap = max( $page_size, $prefilter_cap ); 306 305 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 307 310 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 ] 319 319 ); 320 $allowed_types = (array) ( $user_args['post_types'] ?? [] ); 321 $result = Controller::get_user_query_data( 'Feeds', $user_args ); 320 322 } else { 321 323 $query_args = [ 322 324 'category_id' => $category_id, 323 'post_type' => $post_type,325 'post_type' => SUREDASHBOARD_FEED_POST_TYPE, 324 326 'paged' => 1, 325 327 'taxonomy' => $taxonomy, … … 348 350 array_filter( 349 351 $result, 350 static function ( $post ) {352 static function ( $post ) use ( $allowed_types ) { 351 353 $post_id = absint( $post['ID'] ?? 0 ); 352 if ( ! $post_id ) {354 if ( ! $post_id || ! in_array( $post['post_type'] ?? '', $allowed_types, true ) ) { 353 355 return false; 354 356 } -
suredash/trunk/readme.txt
r3822660 r3834827 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.13. 37 Stable tag: 1.13.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 162 162 163 163 == 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 164 167 = 2026-11-25 - version 1.13.3 = 165 168 * 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 6 6 * Author: SureDash 7 7 * Author URI: https://suredash.com/ 8 * Version: 1.13. 38 * Version: 1.13.4 9 9 * License: GPL v2 10 10 * Text Domain: suredash … … 17 17 * Set constants. 18 18 */ 19 define( 'SUREDASHBOARD_VER', '1.13. 3' );19 define( 'SUREDASHBOARD_VER', '1.13.4' ); 20 20 define( 'SUREDASHBOARD_FILE', __FILE__ ); 21 21 define( 'SUREDASH_PRO_MINIMUM_VER', '1.12.1' );
Note:
See TracChangeset
for help on using the changeset viewer.