Skip to content

Commit 2e18c3f

Browse files
authored
Merge pull request #844 from wpdev10/master
escape disable_greedy argument value in profile and profile header sh…
2 parents 504471b + 6b806da commit 2e18c3f

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver
150150

151151
== Changelog ==
152152

153+
= 1.2.42 - TBD =
154+
* escape disable_greedy argument value in profile and profile header shortcodes - FIXED
155+
153156
= 1.2.41 - 2025-08-21 =
154157
* Author actions not visible in listings tab when default tab is empty - FIXED
155158
* Register form submit button is not translatable - FIXED

templates/bootstrap/profile-header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
?>
106106
</li>
107107
</ul>
108-
<?php echo do_shortcode( "[uwp_user_post_counts disable_greedy=".$args['disable_greedy']."]" ); ?>
108+
<?php echo do_shortcode( "[uwp_user_post_counts disable_greedy=".esc_attr($args['disable_greedy'])."]" ); ?>
109109
</div>
110110
<div class="col-12 <?php if ( ! $uwp_in_user_loop ) { ?>col-xl-4 text-xl-right <?php } ?> text-center pt-2">
111111
<?php

templates/bootstrap/profile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
2-
echo do_shortcode("[uwp_profile_header disable_greedy=".$args['disable_greedy']."]");
3-
echo do_shortcode("[uwp_profile_tabs disable_greedy=".$args['disable_greedy']."]");
2+
echo do_shortcode("[uwp_profile_header disable_greedy=".esc_attr($args['disable_greedy'])."]");
3+
echo do_shortcode("[uwp_profile_tabs disable_greedy=".esc_attr($args['disable_greedy'])."]");
44
?>

0 commit comments

Comments
 (0)