Changeset 2531646
- Timestamp:
- 05/14/2021 10:47:40 AM (5 years ago)
- Location:
- hotscot-page-gallery
- Files:
-
- 6 added
- 2 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/delete.png (added)
-
tags/1.0.2/hotscot-page-gallery.php (added)
-
tags/1.0.2/readme.txt (added)
-
tags/1.0.2/scripts.js (added)
-
tags/1.0.2/styles.css (added)
-
trunk/hotscot-page-gallery.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hotscot-page-gallery/trunk/hotscot-page-gallery.php
r650155 r2531646 3 3 Plugin Name: Hotscot Page Gallery 4 4 Description: Hotscot Page Gallery 5 Version: 1.0. 15 Version: 1.0.2 6 6 Author: Hotscot 7 7 … … 41 41 function hpg_save_post($post_id){ 42 42 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'])); 44 44 } 45 45 } 46 46 47 47 function 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')); 49 49 wp_enqueue_script('hpg-script'); 50 50 } 51 51 52 52 function 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__)); 54 54 wp_enqueue_style('thickbox'); 55 55 wp_enqueue_style('hpg-css'); -
hotscot-page-gallery/trunk/readme.txt
r650155 r2531646 35 35 Fixed a few things to fit with 3.5 36 36 37 1.0.2 38 ======= 39 core updates 40 37 41 == Upgrade Notice == 38 42 None
Note: See TracChangeset
for help on using the changeset viewer.