Changeset 357035
- Timestamp:
- 11/04/2026 03:51:07 AM (5 days ago)
- Location:
- blogus/3.2.1
- Files:
-
- 10 edited
- 1 copied
-
. (copied) (copied from blogus/3.2.0 )
-
inc/ansar/breadcrumb-trail/breadcrumbs.php (modified) (2 diffs)
-
inc/ansar/customize/controls/customize-control-helper.php (modified) (1 diff)
-
inc/ansar/global/schema-markup/schema-markup.php (modified) (1 diff)
-
inc/ansar/hooks/hook-index-main.php (modified) (1 diff)
-
inc/ansar/widgets/widget-author-info.php (modified) (3 diffs)
-
inc/ansar/widgets/widget-featured-post-widget.php (modified) (2 diffs)
-
inc/ansar/widgets/widget-recent-post.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
style-rtl.css (modified) (1 diff)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
blogus/3.2.1/inc/ansar/breadcrumb-trail/breadcrumbs.php
r276933 r357035 738 738 // Add the author's display name to the trail end. 739 739 if ( is_paged() ) 740 $this->items[] = sprintf( '<a href="%s">%s</a>', esc_url( get_author_posts_url( $user_id ) ), get_the_author_meta( 'display_name', $user_id) );740 $this->items[] = sprintf( '<a href="%s">%s</a>', esc_url( get_author_posts_url( $user_id ) ), esc_html( get_the_author_meta( 'display_name', $user_id ) ) ); 741 741 742 742 elseif ( true === $this->args['show_title'] ) 743 $this->items[] = get_the_author_meta( 'display_name', $user_id);743 $this->items[] = esc_html( get_the_author_meta( 'display_name', $user_id ) ); 744 744 } 745 745 … … 1182 1182 1183 1183 // Add the formatted term link to the array of parent terms. 1184 $parents[] = sprintf( '<a href="%s">%s</a>', esc_url( get_term_link( $term, $taxonomy ) ), $term->name);1184 $parents[] = sprintf( '<a href="%s">%s</a>', esc_url( get_term_link( $term, $taxonomy ) ), esc_html( $term->name ) ); 1185 1185 1186 1186 // Set the parent term's parent as the parent ID. -
blogus/3.2.1/inc/ansar/customize/controls/customize-control-helper.php
r354610 r357035 214 214 <input class="image-select" type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $this->id . $value; ?>" name="<?php echo esc_attr( $name ); ?>" <?php $this->link(); checked( $this->value(), $value ); ?>> 215 215 <label for="<?php echo $this->id . $value; ?>"> 216 <img src="<?php echo esc_ html( $label ); ?>" alt="<?php echo esc_attr( $value ); ?>" title="<?php echo esc_attr( $value ); ?>">216 <img src="<?php echo esc_url( $label ); ?>" alt="<?php echo esc_attr( $value ); ?>" title="<?php echo esc_attr( $value ); ?>"> 217 217 </label> 218 218 </input> 219 219 <?php endforeach; ?> 220 220 </div> 221 <script>jQuery(document).ready(function($) { $( '[id="input_<?php echo $this->id; ?>"]' ).buttonset(); });</script>221 <script>jQuery(document).ready(function($) { $( '[id="input_<?php echo esc_js( $this->id ); ?>"]' ).buttonset(); });</script> 222 222 <?php 223 223 } -
blogus/3.2.1/inc/ansar/global/schema-markup/schema-markup.php
r309238 r357035 54 54 55 55 echo '<script type="application/ld+json">' . 56 wp_json_encode( $schema, JSON_UNESCAPED_SLASHES| JSON_UNESCAPED_UNICODE ) .57 '</script>';56 wp_json_encode( $schema, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_UNESCAPED_UNICODE ) . 57 '</script>'; 58 58 } 59 59 add_action( 'wp_head', 'blogus_add_post_schema' ); -
blogus/3.2.1/inc/ansar/hooks/hook-index-main.php
r335615 r357035 158 158 $authorDesc = get_the_author_meta('description'); 159 159 if (!empty($authorDesc)) { 160 echo '<p class="bs-author-desc">' . $authorDesc. '</p>';160 echo '<p class="bs-author-desc">' . wp_kses_post( $authorDesc ) . '</p>'; 161 161 } 162 162 ?> -
blogus/3.2.1/inc/ansar/widgets/widget-author-info.php
r289754 r357035 1 <?php add_action('admin_enqueue_scripts', 'blogus_author_widget_scripts'); 1 <?php 2 add_action('admin_enqueue_scripts', 'blogus_author_widget_scripts'); 2 3 3 4 function blogus_author_widget_scripts() { … … 42 43 endif; 43 44 if (!empty($instance['title'])){ 44 echo $args['before_title'] . $instance['title'] . $args['after_title'];45 echo $args['before_title'] . esc_html( apply_filters( 'widget_title', $instance['title'] ) ) . $args['after_title']; 45 46 } ?> 46 47 <div class="bs-author text-center"> 47 48 <?php if( !empty($instance['image_uri']) ){ ?> 48 <img class="rounded-circle" src="<?php echo esc_url($instance['image_uri']); ?>" alt="<?php echo apply_filters('widget_title', $instance['name']); ?>" />49 <img class="rounded-circle" src="<?php echo esc_url($instance['image_uri']); ?>" alt="<?php echo esc_attr( apply_filters('widget_title', $instance['name']) ); ?>" /> 49 50 <?php } ?> 50 51 <h4><?php echo esc_html($instance['name']); ?></h4> … … 128 129 <?php 129 130 if ( !empty($instance['image_uri']) ) : 130 echo '<img class="custom_media_image_team" src="' . $instance['image_uri'] . '" style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" alt="'.__( 'Uploaded image', 'blogus' ).'" /><br />';131 echo '<img class="custom_media_image_team" src="' . esc_url( $instance['image_uri'] ) . '" style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" alt="'. esc_attr__( 'Uploaded image', 'blogus' ).'" /><br />'; 131 132 endif; 132 133 ?> 133 <input type="text" class="widefat custom_media_url_team" name="<?php echo esc_attr($this->get_field_name('image_uri')); ?>" id="<?php echo esc_attr($this->get_field_id('image_uri')); ?>" value="<?php if( !empty($instance['image_uri']) ): echo $instance['image_uri']; endif; ?>" style="margin-top:5px;">134 <input type="text" class="widefat custom_media_url_team" name="<?php echo esc_attr($this->get_field_name('image_uri')); ?>" id="<?php echo esc_attr($this->get_field_id('image_uri')); ?>" value="<?php if( !empty($instance['image_uri']) ): echo esc_url( $instance['image_uri'] ); endif; ?>" style="margin-top:5px;"> 134 135 <input type="button" class="button button-primary custom_media_button_team" id="custom_media_button_team" name="<?php echo esc_attr($this->get_field_name('image_uri')); ?>" value="<?php esc_attr_e('Upload Image','blogus'); ?>" style="margin-top:5px;"> 135 136 </p> -
blogus/3.2.1/inc/ansar/widgets/widget-featured-post-widget.php
r356934 r357035 57 57 </div> 58 58 <div class="inner py-4 px-4"> 59 <h4 class="title"><a title="<?php echo get_the_title( $postID ); ?>" href="<?php echo get_permalink($postID); ?>"><?php echo get_the_title( $postID); ?></a></h4>59 <h4 class="title"><a title="<?php echo esc_attr( get_the_title( $postID ) ); ?>" href="<?php echo esc_url( get_permalink( $postID ) ); ?>"><?php echo esc_html( get_the_title( $postID ) ); ?></a></h4> 60 60 <div class="bs-blog-meta mb-0"> 61 61 <?php blogus_date_content(); ?> … … 68 68 <div class="small-post-content"> 69 69 <!-- small-post-content --> 70 <h5 class="title"><a title="<?php echo get_the_title( $postID ); ?>" href="<?php echo get_permalink($postID); ?>"><?php echo get_the_title( $postID); ?></a></h5>70 <h5 class="title"><a title="<?php echo esc_attr( get_the_title( $postID ) ); ?>" href="<?php echo esc_url( get_permalink( $postID ) ); ?>"><?php echo esc_html( get_the_title( $postID ) ); ?></a></h5> 71 71 <!-- // title_small_post --> 72 72 <div class="bs-blog-meta"> -
blogus/3.2.1/inc/ansar/widgets/widget-recent-post.php
r285354 r357035 26 26 if($instance['title']) 27 27 28 echo $args['before_title'] . $instance['title']. $args['after_title'];28 echo $args['before_title'] . esc_html( apply_filters( 'widget_title', $instance['title'] ) ) . $args['after_title']; 29 29 30 30 $loop = new WP_Query(array( 'post_type' => 'post','ignore_sticky_posts' => 1, 'showposts' => $instance['number_of_posts'] )); ?> … … 94 94 95 95 $instance = array(); 96 $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? $new_instance['title']: '';96 $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? sanitize_text_field( $new_instance['title'] ) : ''; 97 97 $instance['number_of_posts'] = ( ! empty( $new_instance['number_of_posts'] ) ) ? strip_tags( $new_instance['number_of_posts'] ) : ''; 98 98 -
blogus/3.2.1/readme.txt
r356934 r357035 5 5 Requires at least: 6.0 6 6 Tested up to: 7.1 7 Stable tag: 3.2. 08 Version: 3.2. 07 Stable tag: 3.2.1 8 Version: 3.2.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 814 814 * Remove Unnecessary CSS for customizer. 815 815 * Fixed Featured Post issue. 816 817 = Version 3.2.1 818 * Fixed identified security vulnerabilities. 819 * Improved input validation and output escaping. -
blogus/3.2.1/style-rtl.css
r356934 r357035 5 5 Author URI: https://themeansar.com 6 6 Description: Blogus is a fast, clean, modern-looking Best Responsive News Magazine WordPress theme. The theme is fully widgetized, so users can manage the content by using easy to use widgets. Blogus is suitable for dynamic news, newspapers, magazine, publishers, blogs, editors, online and gaming magazines, newsportals,personal blogs, newspaper, publishing or review siteand any creative website. Blogus is SEO friendly, WPML,Gutenberg, translation and RTL ready. Live preview : https://demos.themeansar.com/blogus-demos/ and documentation at https://docs.themeansar.com/docs/blogus/ 7 Version: 3.2. 07 Version: 3.2.1 8 8 Tested up to: 7.1 9 9 Requires PHP: 7.4 -
blogus/3.2.1/style.css
r356934 r357035 5 5 Author URI: https://themeansar.com 6 6 Description: Blogus is a fast, clean, modern-looking Best Responsive News Magazine WordPress theme. The theme is fully widgetized, so users can manage the content by using easy to use widgets. Blogus is suitable for dynamic news, newspapers, magazine, publishers, blogs, editors, online and gaming magazines, newsportals,personal blogs, newspaper, publishing or review siteand any creative website. Blogus is SEO friendly, WPML,Gutenberg, translation and RTL ready. Live preview : https://demos.themeansar.com/blogus-demos/ and documentation at https://docs.themeansar.com/docs/blogus/ 7 Version: 3.2. 07 Version: 3.2.1 8 8 Tested up to: 7.1 9 9 Requires PHP: 7.4
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)