Plugin Directory

Changeset 2658291


Ignore:
Timestamp:
01/16/2022 04:31:20 AM (4 years ago)
Author:
MyThemeShop
Message:

Update to version 1.0.9 from GitHub

Location:
wp-notification-bars
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-notification-bars/assets/banner-772x250.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • wp-notification-bars/assets/icon-128x128.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-notification-bars/assets/icon-256x256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-notification-bars/assets/screenshot-1.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-notification-bars/assets/screenshot-2.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-notification-bars/assets/screenshot-3.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-notification-bars/assets/screenshot-4.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-notification-bars/assets/screenshot-5.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-notification-bars/tags/1.0.9/admin/class-wp-notification-bars-admin.php

    r2649755 r2658291  
    637637
    638638            ?>
    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>
    641641                <div class="form-option <?php echo esc_attr( $class ); ?>">
    642642                <?php
     
    645645                    case 'text':
    646646                        ?>
    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 ); ?>" />
    648648                        <?php
    649649                        break;
    650650                    case 'select':
    651651                        ?>
    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 ); ?>">
    653653                        <?php foreach ( $options as $val => $label ) { ?>
    654654                            <option value="<?php echo esc_attr( $val ); ?>" <?php selected( $opt_val, $val, true ); ?>><?php echo esc_html( $label ); ?></option>
     
    659659                    case 'number':
    660660                        ?>
    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"/>
    662662                        <?php
    663663                        break;
    664664                    case 'color':
    665665                        ?>
    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" />
    667667                        <?php
    668668                        break;
    669669                    case 'textarea':
    670670                        ?>
    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>
    672672                        <?php
    673673                        break;
    674674                    case 'checkbox':
    675675                        ?>
    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 ); ?> />
    677677                        <?php
    678678                        break;
     
    10181018            }
    10191019
    1020             $val = $_POST['mtsnb_override_bar_field'];
     1020            $val = sanitize_text_field( $_POST['mtsnb_override_bar_field'] );
    10211021
    10221022            if ( strpos( $val, ',' ) === false ) {
     
    10281028            }
    10291029
     1030            $post_ids = array_map( 'absint', $post_ids );
     1031
    10301032            // Update the meta field in the database.
    10311033            update_post_meta( $post_id, '_mtsnb_override_bar', $post_ids );
     
    10411043            $result = array();
    10421044
    1043             $search = $_REQUEST['q']; // phpcs:ignore WordPress.Security.NonceVerification
     1045            $search = sanitize_text_field( $_REQUEST['q'] ); // phpcs:ignore WordPress.Security.NonceVerification
    10441046
    10451047            $ads_query = array(
     
    10821084            $result = array();
    10831085
    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
    10861088                if ( strpos( $post_ids, ',' ) === false ) {
    10871089                    // There is no comma, so we can't explode, but we still want an array
     
    10941096                $post_ids = array();
    10951097            }
     1098
     1099            $post_ids = array_map( 'absint', $post_ids );
    10961100
    10971101            if ( is_array( $post_ids ) && ! empty( $post_ids ) ) {
  • wp-notification-bars/tags/1.0.9/includes/class-wp-notification-bars-shared.php

    r2649755 r2658291  
    530530
    531531                    // Stored referrer url
    532                     $referer = $_COOKIE['mtsnb_referrer'];
     532                    $referer = esc_url( $_COOKIE['mtsnb_referrer'] );
    533533                }
    534534            }
  • wp-notification-bars/tags/1.0.9/includes/class-wp-notification-bars.php

    r2649755 r2658291  
    7070
    7171        $this->plugin_name = 'wp-notification-bars';
    72         $this->version     = '1.0.8';
     72        $this->version     = '1.0.9';
    7373
    7474        $this->load_dependencies();
  • wp-notification-bars/tags/1.0.9/readme.txt

    r2649755 r2658291  
    55Requires at least: 3.0.1
    66Tested up to: 5.8.2
    7 Stable tag: 1.0.8
     7Stable tag: 1.0.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242<a href=“https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/“>https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/</a><br>
    4343<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>
     44If 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>
    4545
    4646Support link:<br>
     
    7575== Changelog ==
    7676
     77= 1.0.9 =
     78* Security improvements
     79
    7780= 1.0.8 =
    7881* More security improvements
  • wp-notification-bars/tags/1.0.9/wp-notification-bars.php

    r2649755 r2658291  
    55 * Plugin URI:        https://mythemeshop.com/plugins/wp-notification-bars/
    66 * 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.8
     7 * Version:           1.0.9
    88 * Author:            MyThemeShop
    99 * Author URI:        https://mythemeshop.com/
  • wp-notification-bars/trunk/admin/class-wp-notification-bars-admin.php

    r2649755 r2658291  
    637637
    638638            ?>
    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>
    641641                <div class="form-option <?php echo esc_attr( $class ); ?>">
    642642                <?php
     
    645645                    case 'text':
    646646                        ?>
    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 ); ?>" />
    648648                        <?php
    649649                        break;
    650650                    case 'select':
    651651                        ?>
    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 ); ?>">
    653653                        <?php foreach ( $options as $val => $label ) { ?>
    654654                            <option value="<?php echo esc_attr( $val ); ?>" <?php selected( $opt_val, $val, true ); ?>><?php echo esc_html( $label ); ?></option>
     
    659659                    case 'number':
    660660                        ?>
    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"/>
    662662                        <?php
    663663                        break;
    664664                    case 'color':
    665665                        ?>
    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" />
    667667                        <?php
    668668                        break;
    669669                    case 'textarea':
    670670                        ?>
    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>
    672672                        <?php
    673673                        break;
    674674                    case 'checkbox':
    675675                        ?>
    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 ); ?> />
    677677                        <?php
    678678                        break;
     
    10181018            }
    10191019
    1020             $val = $_POST['mtsnb_override_bar_field'];
     1020            $val = sanitize_text_field( $_POST['mtsnb_override_bar_field'] );
    10211021
    10221022            if ( strpos( $val, ',' ) === false ) {
     
    10281028            }
    10291029
     1030            $post_ids = array_map( 'absint', $post_ids );
     1031
    10301032            // Update the meta field in the database.
    10311033            update_post_meta( $post_id, '_mtsnb_override_bar', $post_ids );
     
    10411043            $result = array();
    10421044
    1043             $search = $_REQUEST['q']; // phpcs:ignore WordPress.Security.NonceVerification
     1045            $search = sanitize_text_field( $_REQUEST['q'] ); // phpcs:ignore WordPress.Security.NonceVerification
    10441046
    10451047            $ads_query = array(
     
    10821084            $result = array();
    10831085
    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
    10861088                if ( strpos( $post_ids, ',' ) === false ) {
    10871089                    // There is no comma, so we can't explode, but we still want an array
     
    10941096                $post_ids = array();
    10951097            }
     1098
     1099            $post_ids = array_map( 'absint', $post_ids );
    10961100
    10971101            if ( is_array( $post_ids ) && ! empty( $post_ids ) ) {
  • wp-notification-bars/trunk/includes/class-wp-notification-bars-shared.php

    r2649755 r2658291  
    530530
    531531                    // Stored referrer url
    532                     $referer = $_COOKIE['mtsnb_referrer'];
     532                    $referer = esc_url( $_COOKIE['mtsnb_referrer'] );
    533533                }
    534534            }
  • wp-notification-bars/trunk/includes/class-wp-notification-bars.php

    r2649755 r2658291  
    7070
    7171        $this->plugin_name = 'wp-notification-bars';
    72         $this->version     = '1.0.8';
     72        $this->version     = '1.0.9';
    7373
    7474        $this->load_dependencies();
  • wp-notification-bars/trunk/readme.txt

    r2649755 r2658291  
    55Requires at least: 3.0.1
    66Tested up to: 5.8.2
    7 Stable tag: 1.0.8
     7Stable tag: 1.0.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242<a href=“https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/“>https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/</a><br>
    4343<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>
     44If 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>
    4545
    4646Support link:<br>
     
    7575== Changelog ==
    7676
     77= 1.0.9 =
     78* Security improvements
     79
    7780= 1.0.8 =
    7881* More security improvements
  • wp-notification-bars/trunk/wp-notification-bars.php

    r2649755 r2658291  
    55 * Plugin URI:        https://mythemeshop.com/plugins/wp-notification-bars/
    66 * 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.8
     7 * Version:           1.0.9
    88 * Author:            MyThemeShop
    99 * Author URI:        https://mythemeshop.com/
Note: See TracChangeset for help on using the changeset viewer.