Changeset 1603693
- Timestamp:
- 02/26/2017 02:36:19 AM (9 years ago)
- Location:
- author-showcase
- Files:
-
- 6 edited
-
tags/1.3/author_showcase.php (modified) (3 diffs)
-
tags/1.3/btbe_add.php (modified) (5 diffs)
-
tags/1.3/readme.txt (modified) (2 diffs)
-
trunk/author_showcase.php (modified) (3 diffs)
-
trunk/btbe_add.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
author-showcase/tags/1.3/author_showcase.php
r1596206 r1603693 2 2 /** 3 3 * @package Author_Showcase 4 * @version 1.3 4 * @version 1.3.2 5 5 */ 6 6 /* … … 9 9 Description: The Author Showcase is an all-in-one plugin for displaying an author's books on their site in a variety of convenient formats, using shortcodes or widgets. 10 10 Author: Claire Ryan 11 Version: 1.3 11 Version: 1.3.2 12 12 Author URI: http://raynfall.com/ 13 13 License: GPL v.2 … … 303 303 dbDelta($sql); 304 304 } 305 add_option( 'buybook_db_version', '1.3 ' );305 add_option( 'buybook_db_version', '1.3.2' ); 306 306 } 307 307 -
author-showcase/tags/1.3/btbe_add.php
r1596206 r1603693 14 14 } 15 15 else { 16 if(isset($_REQUEST['cover'])) { 17 $spliturl = parse_url(esc_url($_REQUEST['cover'])); 18 $path = $spliturl['path']; 19 } 20 else { 21 $path = ''; 22 } 16 23 $book = array( 17 24 'created' => date('Y-m-d H:i:s', time()), … … 23 30 'series_num' => isset($_REQUEST['series_num']) ? esc_attr(@$_REQUEST['series_num']) : '', 24 31 'blurb' => isset($_REQUEST['blurb']) ? esc_textarea(@$_REQUEST['blurb']) : '', 25 'cover' => isset($_REQUEST['cover']) ? esc_url(@$_REQUEST['cover']) : '',32 'cover' => $path, 26 33 'asin' => isset($_REQUEST['asin']) ? esc_attr(@$_REQUEST['asin']) : '', 27 34 'isbn' => isset($_REQUEST['isbn']) ? esc_attr(@$_REQUEST['isbn']) : '', … … 31 38 32 39 $services = array(); 33 40 34 41 foreach ($_REQUEST as $idx => $r) { 35 42 if(strpos($idx, 'sername') !== false) { 36 43 $int = filter_var($idx, FILTER_SANITIZE_NUMBER_INT); 37 $services[$int]['name'] = stripslashes($r); 38 } 39 if(strpos($idx, 'sericon') !== false) { 40 $int = filter_var($idx, FILTER_SANITIZE_NUMBER_INT); 41 $services[$int]['icon'] = $r; 42 } 43 if(strpos($idx, 'serlink') !== false) { 44 $int = filter_var($idx, FILTER_SANITIZE_NUMBER_INT); 45 $services[$int]['link'] = $r; 44 $name = isset($_REQUEST['sername'.$int]) ? esc_attr(@$_REQUEST['sername'.$int]) : ''; 45 $icon = isset($_REQUEST['sericon'.$int]) ? esc_attr(@$_REQUEST['sericon'.$int]) : ''; 46 $link = isset($_REQUEST['serlink'.$int]) ? esc_url(@$_REQUEST['serlink'.$int]) : ''; 47 $services[] = array( 48 'name' => $name, 49 'icon' => $icon, 50 'link' => $link 51 ); 46 52 } 47 53 } … … 61 67 $record = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}buybooks WHERE id = '".esc_sql($_REQUEST['btbe_id'])."'", ARRAY_A); 62 68 if(!$record) { echo 'Book not found!'; exit; } 63 $_REQUEST = array_merge($_REQUEST, $record); 69 $_REQUEST = array_merge($_REQUEST, $record); 64 70 $services = json_decode($record['services'], true); 65 71 } … … 244 250 </td> 245 251 </tr> 246 <tr valign="top"><th scope="row">Selling Links<br /><small>(Click add to create more)</small></th> 247 <td> 252 <tr valign="top"><th scope="row">Selling Links<br /><small>(Click add to create more)</small></th></tr> 253 <tr> 254 <td colspan="2"> 248 255 <table id="btbe_services_table" class="btbe_services"> 249 256 <tr> -
author-showcase/tags/1.3/readme.txt
r1596206 r1603693 5 5 Requires at least: 4.0 6 6 Tested up to: 4.5 7 Stable tag: 1.3 7 Stable tag: 1.3.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 51 51 == Changelog == 52 52 53 = 1.3.2 = 54 * Fixed a bug which caused sales links to be improperly loaded, added and deleted 55 56 = 1.3.1 = 57 * Fixed an issue with absolute URLs being saved for icons and covers; images now save relative URLs 58 53 59 = 1.3 = 54 60 * Added a new 'links_only' mode to the display shortcode in order to display a set of text buy links -
author-showcase/trunk/author_showcase.php
r1597775 r1603693 2 2 /** 3 3 * @package Author_Showcase 4 * @version 1.3. 14 * @version 1.3.2 5 5 */ 6 6 /* … … 9 9 Description: The Author Showcase is an all-in-one plugin for displaying an author's books on their site in a variety of convenient formats, using shortcodes or widgets. 10 10 Author: Claire Ryan 11 Version: 1.3. 111 Version: 1.3.2 12 12 Author URI: http://raynfall.com/ 13 13 License: GPL v.2 … … 303 303 dbDelta($sql); 304 304 } 305 add_option( 'buybook_db_version', '1.3. 1' );305 add_option( 'buybook_db_version', '1.3.2' ); 306 306 } 307 307 -
author-showcase/trunk/btbe_add.php
r1597775 r1603693 38 38 39 39 $services = array(); 40 40 41 41 foreach ($_REQUEST as $idx => $r) { 42 42 if(strpos($idx, 'sername') !== false) { 43 43 $int = filter_var($idx, FILTER_SANITIZE_NUMBER_INT); 44 $services[$int]['name'] = stripslashes($r); 45 } 46 if(strpos($idx, 'sericon') !== false) { 47 $int = filter_var($idx, FILTER_SANITIZE_NUMBER_INT); 48 $spliturl = parse_url($r); 49 $services[$int]['icon'] = $spliturl['path']; 50 } 51 if(strpos($idx, 'serlink') !== false) { 52 $int = filter_var($idx, FILTER_SANITIZE_NUMBER_INT); 53 $services[$int]['link'] = $r; 44 $name = isset($_REQUEST['sername'.$int]) ? esc_attr(@$_REQUEST['sername'.$int]) : ''; 45 $icon = isset($_REQUEST['sericon'.$int]) ? esc_attr(@$_REQUEST['sericon'.$int]) : ''; 46 $link = isset($_REQUEST['serlink'.$int]) ? esc_url(@$_REQUEST['serlink'.$int]) : ''; 47 $services[] = array( 48 'name' => $name, 49 'icon' => $icon, 50 'link' => $link 51 ); 54 52 } 55 53 } … … 69 67 $record = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}buybooks WHERE id = '".esc_sql($_REQUEST['btbe_id'])."'", ARRAY_A); 70 68 if(!$record) { echo 'Book not found!'; exit; } 71 $_REQUEST = array_merge($_REQUEST, $record); 69 $_REQUEST = array_merge($_REQUEST, $record); 72 70 $services = json_decode($record['services'], true); 73 71 } … … 252 250 </td> 253 251 </tr> 254 <tr valign="top"><th scope="row">Selling Links<br /><small>(Click add to create more)</small></th> 255 <td> 252 <tr valign="top"><th scope="row">Selling Links<br /><small>(Click add to create more)</small></th></tr> 253 <tr> 254 <td colspan="2"> 256 255 <table id="btbe_services_table" class="btbe_services"> 257 256 <tr> -
author-showcase/trunk/readme.txt
r1597775 r1603693 5 5 Requires at least: 4.0 6 6 Tested up to: 4.5 7 Stable tag: 1.3. 17 Stable tag: 1.3.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 51 51 == Changelog == 52 52 53 = 1.3.2 = 54 * Fixed a bug which caused sales links to be improperly loaded, added and deleted 55 53 56 = 1.3.1 = 54 57 * Fixed an issue with absolute URLs being saved for icons and covers; images now save relative URLs
Note: See TracChangeset
for help on using the changeset viewer.