Plugin Directory

Changeset 2531646


Ignore:
Timestamp:
05/14/2021 10:47:40 AM (5 years ago)
Author:
DaganLev
Message:

Version 1.0.2 - core updates

Location:
hotscot-page-gallery
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • hotscot-page-gallery/trunk/hotscot-page-gallery.php

    r650155 r2531646  
    33Plugin Name: Hotscot Page Gallery
    44Description: Hotscot Page Gallery
    5 Version: 1.0.1
     5Version: 1.0.2
    66Author: Hotscot
    77
     
    4141function hpg_save_post($post_id){
    4242    if (!wp_is_post_revision($post_id)){
    43         add_post_meta($post_id, '_hpg_items', $_POST['hpg_gallery_items'], true) or update_post_meta($post_id, '_hpg_items', $_POST['hpg_gallery_items']);
     43        add_post_meta($post_id, '_hpg_items', sanitize_textarea_field($_POST['hpg_gallery_items']), true) or update_post_meta($post_id, '_hpg_items', sanitize_textarea_field($_POST['hpg_gallery_items']));
    4444    }
    4545}
    4646
    4747function hpg_scripts() {
    48     wp_register_script('hpg-script', WP_PLUGIN_URL . '/hotscot-page-gallery/scripts.js', array('jquery','media-upload','thickbox','jquery-ui-sortable','jquery-ui-draggable'));
     48    wp_register_script('hpg-script', plugins_url('scripts.js', __FILE__), array('jquery','media-upload','thickbox','jquery-ui-sortable','jquery-ui-draggable'));
    4949    wp_enqueue_script('hpg-script');
    5050}
    5151
    5252function hpg_styles() {
    53     wp_register_style('hpg-css', WP_PLUGIN_URL . '/hotscot-page-gallery/styles.css');
     53    wp_register_style('hpg-css', plugins_url('style.css.js', __FILE__));
    5454    wp_enqueue_style('thickbox');
    5555    wp_enqueue_style('hpg-css');
  • hotscot-page-gallery/trunk/readme.txt

    r650155 r2531646  
    3535Fixed a few things to fit with 3.5
    3636
     371.0.2
     38=======
     39core updates
     40
    3741== Upgrade Notice ==
    3842None
Note: See TracChangeset for help on using the changeset viewer.