Skip to content

Commit

Permalink
Merge pull request #8 from FameThemes/development
Browse files Browse the repository at this point in the history
Update version to 1.0.6
  • Loading branch information
shrimp2t committed Apr 2, 2016
2 parents a63b73f + 40e7d4f commit 46f3c84
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 19 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
====================================================================
CHANGELOG
====================================================================
## 1.0.6
* Add Sanitize widget data.

## 1.0.5
* Change Action hooks prefix.
* Fix Dashboard: Correct capability.
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: http://www.famethemes.com/themes/codilight-lite
Author: FameThemes
Author URI: http://www.famethemes.com
Description: Codilight Lite is a news magazine style WordPress theme from FameThemes which is a perfect option to create any kind of magazine or blog websites.
Version: 1.0.5
Version: 1.0.6
Text Domain: codilight-lite
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down
10 changes: 5 additions & 5 deletions inc/widgets/block_1_widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ public function update( $new_instance, $old_instance ) {
'orderby' => '',
) );

$instance['title'] = strip_tags( $new_instance['title'] );
$instance['ignore_sticky'] = isset($new_instance['ignore_sticky']) ? strip_tags($new_instance['ignore_sticky']) : '';
$instance['layout'] = $new_instance['layout'];
$instance['featured_categories'] = $new_instance['featured_categories'];
$instance['title'] = sanitize_text_field( $new_instance['title'] );
$instance['ignore_sticky'] = isset($new_instance['ignore_sticky']) && $new_instance['ignore_sticky'] ? 1 : 0;
$instance['layout'] = sanitize_text_field( $new_instance['layout'] );
$instance['featured_categories'] = isset( $new_instance['featured_categories'] ) ? array_map( 'absint', ( array) $new_instance['featured_categories'] ) : false ;
$instance['number_posts'] = absint( $new_instance['number_posts'] );
$instance['orderby'] = $new_instance['orderby'];
$instance['orderby'] = sanitize_text_field( $new_instance['orderby'] );

return $instance;
}
Expand Down
8 changes: 4 additions & 4 deletions inc/widgets/block_2_widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ public function update( $new_instance, $old_instance ) {
'orderby' => '',
) );

$instance['title'] = strip_tags( $new_instance['title'] );
$instance['ignore_sticky'] = isset($new_instance['ignore_sticky']) ? strip_tags($new_instance['ignore_sticky']) : '';
$instance['featured_categories'] = $new_instance['featured_categories'];
$instance['title'] = sanitize_text_field( $new_instance['title'] );
$instance['ignore_sticky'] = isset($new_instance['ignore_sticky']) && $new_instance['ignore_sticky'] ? 1 : 0;
$instance['featured_categories'] = isset( $new_instance['featured_categories'] ) ? array_map( 'absint', ( array) $new_instance['featured_categories'] ) : false ;
$instance['number_posts'] = absint( $new_instance['number_posts'] );
$instance['orderby'] = $new_instance['orderby'];
$instance['orderby'] = sanitize_text_field( $new_instance['orderby'] );

return $instance;
}
Expand Down
8 changes: 4 additions & 4 deletions inc/widgets/block_3_widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ public function update( $new_instance, $old_instance ) {
'orderby' => '',
) );

$instance['title'] = strip_tags( $new_instance['title'] );
$instance['ignore_sticky'] = isset($new_instance['ignore_sticky']) ? strip_tags($new_instance['ignore_sticky']) : '';
$instance['block_category'] = $new_instance['block_category'];
$instance['title'] = sanitize_text_field( $new_instance['title'] );
$instance['ignore_sticky'] = isset($new_instance['ignore_sticky']) && $new_instance['ignore_sticky'] ? 1 : 0;
$instance['block_category'] = absint( $new_instance['block_category'] );
$instance['number_posts'] = absint( $new_instance['number_posts'] );
$instance['orderby'] = $new_instance['orderby'];
$instance['orderby'] = sanitize_text_field( $new_instance['orderby'] );

return $instance;
}
Expand Down
8 changes: 4 additions & 4 deletions inc/widgets/block_4_widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ public function update( $new_instance, $old_instance ) {
'orderby' => '',
) );

$instance['title'] = strip_tags( $new_instance['title'] );
$instance['ignore_sticky'] = isset($new_instance['ignore_sticky']) ? strip_tags($new_instance['ignore_sticky']) : '';
$instance['featured_categories'] = $new_instance['featured_categories'];
$instance['title'] = sanitize_text_field( $new_instance['title'] );
$instance['ignore_sticky'] = isset($new_instance['ignore_sticky']) && $new_instance['ignore_sticky'] ? 1 : 0;
$instance['featured_categories'] = isset( $new_instance['featured_categories'] ) ? array_map( 'absint', ( array) $new_instance['featured_categories'] ) : false ;
$instance['number_posts'] = absint( $new_instance['number_posts'] );
$instance['orderby'] = $new_instance['orderby'];
$instance['orderby'] = sanitize_text_field( $new_instance['orderby'] );

return $instance;
}
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Theme URI: http://www.famethemes.com/themes/codilight-lite
Author: FameThemes
Author URI: http://www.famethemes.com
Description: Codilight Lite is a news magazine style WordPress theme from FameThemes which is a perfect option to create any kind of magazine or blog websites.
Version: 1.0.5
Version: 1.0.6
Text Domain: codilight-lite
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down

0 comments on commit 46f3c84

Please sign in to comment.