Changeset 2658291
- Timestamp:
- 01/16/2022 04:31:20 AM (4 years ago)
- Location:
- wp-notification-bars
- Files:
-
- 18 edited
- 1 copied
-
assets/banner-772x250.jpg (modified) (1 prop) (previous)
-
assets/icon-128x128.png (modified) (1 prop) (previous)
-
assets/icon-256x256.png (modified) (1 prop) (previous)
-
assets/screenshot-1.png (modified) (1 prop) (previous)
-
assets/screenshot-2.png (modified) (1 prop) (previous)
-
assets/screenshot-3.png (modified) (1 prop) (previous)
-
assets/screenshot-4.png (modified) (1 prop) (previous)
-
assets/screenshot-5.png (modified) (1 prop) (previous)
-
tags/1.0.9 (copied) (copied from wp-notification-bars/trunk)
-
tags/1.0.9/admin/class-wp-notification-bars-admin.php (modified) (8 diffs)
-
tags/1.0.9/includes/class-wp-notification-bars-shared.php (modified) (1 diff)
-
tags/1.0.9/includes/class-wp-notification-bars.php (modified) (1 diff)
-
tags/1.0.9/readme.txt (modified) (3 diffs)
-
tags/1.0.9/wp-notification-bars.php (modified) (1 diff)
-
trunk/admin/class-wp-notification-bars-admin.php (modified) (8 diffs)
-
trunk/includes/class-wp-notification-bars-shared.php (modified) (1 diff)
-
trunk/includes/class-wp-notification-bars.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-notification-bars.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-notification-bars/assets/banner-772x250.jpg
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/jpeg
-
Property
svn:mime-type
changed from
-
wp-notification-bars/assets/icon-128x128.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-notification-bars/assets/icon-256x256.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-notification-bars/assets/screenshot-1.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-notification-bars/assets/screenshot-2.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-notification-bars/assets/screenshot-3.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-notification-bars/assets/screenshot-4.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-notification-bars/assets/screenshot-5.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wp-notification-bars/tags/1.0.9/admin/class-wp-notification-bars-admin.php
r2649755 r2658291 637 637 638 638 ?> 639 <div id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>_row" class="form-row">640 <label class="form-label" for="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>"><?php echo esc_html( $label ); ?></label>639 <div id="mtsnb_fields_<?php echo esc_attr( $name ); ?>_row" class="form-row"> 640 <label class="form-label" for="mtsnb_fields_<?php echo esc_attr( $name ); ?>"><?php echo esc_html( $label ); ?></label> 641 641 <div class="form-option <?php echo esc_attr( $class ); ?>"> 642 642 <?php … … 645 645 case 'text': 646 646 ?> 647 <input type="text" name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" />647 <input type="text" name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" /> 648 648 <?php 649 649 break; 650 650 case 'select': 651 651 ?> 652 <select name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>">652 <select name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>"> 653 653 <?php foreach ( $options as $val => $label ) { ?> 654 654 <option value="<?php echo esc_attr( $val ); ?>" <?php selected( $opt_val, $val, true ); ?>><?php echo esc_html( $label ); ?></option> … … 659 659 case 'number': 660 660 ?> 661 <input type="number" step="1" min="<?php echo (int) $min; ?>" name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" class="small-text"/>661 <input type="number" step="1" min="<?php echo (int) $min; ?>" name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" class="small-text"/> 662 662 <?php 663 663 break; 664 664 case 'color': 665 665 ?> 666 <input type="text" name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" class="mtsnb-color-picker" />666 <input type="text" name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" class="mtsnb-color-picker" /> 667 667 <?php 668 668 break; 669 669 case 'textarea': 670 670 ?> 671 <textarea name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>" class="mtsnb-textarea"><?php echo esc_textarea( $opt_val ); ?></textarea>671 <textarea name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>" class="mtsnb-textarea"><?php echo esc_textarea( $opt_val ); ?></textarea> 672 672 <?php 673 673 break; 674 674 case 'checkbox': 675 675 ?> 676 <input type="checkbox" name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>" value="1" <?php checked( $opt_val, '1', true ); ?> />676 <input type="checkbox" name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>" value="1" <?php checked( $opt_val, '1', true ); ?> /> 677 677 <?php 678 678 break; … … 1018 1018 } 1019 1019 1020 $val = $_POST['mtsnb_override_bar_field'];1020 $val = sanitize_text_field( $_POST['mtsnb_override_bar_field'] ); 1021 1021 1022 1022 if ( strpos( $val, ',' ) === false ) { … … 1028 1028 } 1029 1029 1030 $post_ids = array_map( 'absint', $post_ids ); 1031 1030 1032 // Update the meta field in the database. 1031 1033 update_post_meta( $post_id, '_mtsnb_override_bar', $post_ids ); … … 1041 1043 $result = array(); 1042 1044 1043 $search = $_REQUEST['q']; // phpcs:ignore WordPress.Security.NonceVerification1045 $search = sanitize_text_field( $_REQUEST['q'] ); // phpcs:ignore WordPress.Security.NonceVerification 1044 1046 1045 1047 $ads_query = array( … … 1082 1084 $result = array(); 1083 1085 1084 if ( isset( $_REQUEST['post_ids'] ) ) { 1085 $post_ids = $_REQUEST['post_ids'];1086 if ( isset( $_REQUEST['post_ids'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification 1087 $post_ids = sanitize_text_field( $_REQUEST['post_ids'] ); // phpcs:ignore WordPress.Security.NonceVerification 1086 1088 if ( strpos( $post_ids, ',' ) === false ) { 1087 1089 // There is no comma, so we can't explode, but we still want an array … … 1094 1096 $post_ids = array(); 1095 1097 } 1098 1099 $post_ids = array_map( 'absint', $post_ids ); 1096 1100 1097 1101 if ( is_array( $post_ids ) && ! empty( $post_ids ) ) { -
wp-notification-bars/tags/1.0.9/includes/class-wp-notification-bars-shared.php
r2649755 r2658291 530 530 531 531 // Stored referrer url 532 $referer = $_COOKIE['mtsnb_referrer'];532 $referer = esc_url( $_COOKIE['mtsnb_referrer'] ); 533 533 } 534 534 } -
wp-notification-bars/tags/1.0.9/includes/class-wp-notification-bars.php
r2649755 r2658291 70 70 71 71 $this->plugin_name = 'wp-notification-bars'; 72 $this->version = '1.0. 8';72 $this->version = '1.0.9'; 73 73 74 74 $this->load_dependencies(); -
wp-notification-bars/tags/1.0.9/readme.txt
r2649755 r2658291 5 5 Requires at least: 3.0.1 6 6 Tested up to: 5.8.2 7 Stable tag: 1.0. 87 Stable tag: 1.0.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 <a href=“https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/“>https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/</a><br> 43 43 <br> 44 you are still stuck, please feel free to open a new thread, and a member of our support team will be happy to help.<br>44 If you are still stuck, please feel free to open a new thread, and a member of our support team will be happy to help.<br> 45 45 46 46 Support link:<br> … … 75 75 == Changelog == 76 76 77 = 1.0.9 = 78 * Security improvements 79 77 80 = 1.0.8 = 78 81 * More security improvements -
wp-notification-bars/tags/1.0.9/wp-notification-bars.php
r2649755 r2658291 5 5 * Plugin URI: https://mythemeshop.com/plugins/wp-notification-bars/ 6 6 * Description: WP Notification Bars is a custom notification and alert bar plugin for WordPress which is perfect for marketing promotions, alerts, increasing click throughs to other pages and so much more. 7 * Version: 1.0. 87 * Version: 1.0.9 8 8 * Author: MyThemeShop 9 9 * Author URI: https://mythemeshop.com/ -
wp-notification-bars/trunk/admin/class-wp-notification-bars-admin.php
r2649755 r2658291 637 637 638 638 ?> 639 <div id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>_row" class="form-row">640 <label class="form-label" for="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>"><?php echo esc_html( $label ); ?></label>639 <div id="mtsnb_fields_<?php echo esc_attr( $name ); ?>_row" class="form-row"> 640 <label class="form-label" for="mtsnb_fields_<?php echo esc_attr( $name ); ?>"><?php echo esc_html( $label ); ?></label> 641 641 <div class="form-option <?php echo esc_attr( $class ); ?>"> 642 642 <?php … … 645 645 case 'text': 646 646 ?> 647 <input type="text" name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" />647 <input type="text" name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" /> 648 648 <?php 649 649 break; 650 650 case 'select': 651 651 ?> 652 <select name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>">652 <select name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>"> 653 653 <?php foreach ( $options as $val => $label ) { ?> 654 654 <option value="<?php echo esc_attr( $val ); ?>" <?php selected( $opt_val, $val, true ); ?>><?php echo esc_html( $label ); ?></option> … … 659 659 case 'number': 660 660 ?> 661 <input type="number" step="1" min="<?php echo (int) $min; ?>" name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" class="small-text"/>661 <input type="number" step="1" min="<?php echo (int) $min; ?>" name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" class="small-text"/> 662 662 <?php 663 663 break; 664 664 case 'color': 665 665 ?> 666 <input type="text" name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" class="mtsnb-color-picker" />666 <input type="text" name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $opt_val ); ?>" class="mtsnb-color-picker" /> 667 667 <?php 668 668 break; 669 669 case 'textarea': 670 670 ?> 671 <textarea name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>" class="mtsnb-textarea"><?php echo esc_textarea( $opt_val ); ?></textarea>671 <textarea name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>" class="mtsnb-textarea"><?php echo esc_textarea( $opt_val ); ?></textarea> 672 672 <?php 673 673 break; 674 674 case 'checkbox': 675 675 ?> 676 <input type="checkbox" name="mtsnb_fields[<?php echo sanitize_html_class( $name ); ?>]" id="mtsnb_fields_<?php echo sanitize_html_class( $name ); ?>" value="1" <?php checked( $opt_val, '1', true ); ?> />676 <input type="checkbox" name="mtsnb_fields[<?php echo esc_attr( $name ); ?>]" id="mtsnb_fields_<?php echo esc_attr( $name ); ?>" value="1" <?php checked( $opt_val, '1', true ); ?> /> 677 677 <?php 678 678 break; … … 1018 1018 } 1019 1019 1020 $val = $_POST['mtsnb_override_bar_field'];1020 $val = sanitize_text_field( $_POST['mtsnb_override_bar_field'] ); 1021 1021 1022 1022 if ( strpos( $val, ',' ) === false ) { … … 1028 1028 } 1029 1029 1030 $post_ids = array_map( 'absint', $post_ids ); 1031 1030 1032 // Update the meta field in the database. 1031 1033 update_post_meta( $post_id, '_mtsnb_override_bar', $post_ids ); … … 1041 1043 $result = array(); 1042 1044 1043 $search = $_REQUEST['q']; // phpcs:ignore WordPress.Security.NonceVerification1045 $search = sanitize_text_field( $_REQUEST['q'] ); // phpcs:ignore WordPress.Security.NonceVerification 1044 1046 1045 1047 $ads_query = array( … … 1082 1084 $result = array(); 1083 1085 1084 if ( isset( $_REQUEST['post_ids'] ) ) { 1085 $post_ids = $_REQUEST['post_ids'];1086 if ( isset( $_REQUEST['post_ids'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification 1087 $post_ids = sanitize_text_field( $_REQUEST['post_ids'] ); // phpcs:ignore WordPress.Security.NonceVerification 1086 1088 if ( strpos( $post_ids, ',' ) === false ) { 1087 1089 // There is no comma, so we can't explode, but we still want an array … … 1094 1096 $post_ids = array(); 1095 1097 } 1098 1099 $post_ids = array_map( 'absint', $post_ids ); 1096 1100 1097 1101 if ( is_array( $post_ids ) && ! empty( $post_ids ) ) { -
wp-notification-bars/trunk/includes/class-wp-notification-bars-shared.php
r2649755 r2658291 530 530 531 531 // Stored referrer url 532 $referer = $_COOKIE['mtsnb_referrer'];532 $referer = esc_url( $_COOKIE['mtsnb_referrer'] ); 533 533 } 534 534 } -
wp-notification-bars/trunk/includes/class-wp-notification-bars.php
r2649755 r2658291 70 70 71 71 $this->plugin_name = 'wp-notification-bars'; 72 $this->version = '1.0. 8';72 $this->version = '1.0.9'; 73 73 74 74 $this->load_dependencies(); -
wp-notification-bars/trunk/readme.txt
r2649755 r2658291 5 5 Requires at least: 3.0.1 6 6 Tested up to: 5.8.2 7 Stable tag: 1.0. 87 Stable tag: 1.0.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 <a href=“https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/“>https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/</a><br> 43 43 <br> 44 you are still stuck, please feel free to open a new thread, and a member of our support team will be happy to help.<br>44 If you are still stuck, please feel free to open a new thread, and a member of our support team will be happy to help.<br> 45 45 46 46 Support link:<br> … … 75 75 == Changelog == 76 76 77 = 1.0.9 = 78 * Security improvements 79 77 80 = 1.0.8 = 78 81 * More security improvements -
wp-notification-bars/trunk/wp-notification-bars.php
r2649755 r2658291 5 5 * Plugin URI: https://mythemeshop.com/plugins/wp-notification-bars/ 6 6 * Description: WP Notification Bars is a custom notification and alert bar plugin for WordPress which is perfect for marketing promotions, alerts, increasing click throughs to other pages and so much more. 7 * Version: 1.0. 87 * Version: 1.0.9 8 8 * Author: MyThemeShop 9 9 * Author URI: https://mythemeshop.com/
Note: See TracChangeset
for help on using the changeset viewer.