Changeset 1515543
- Timestamp:
- 10/15/2016 05:50:30 PM (9 years ago)
- File:
-
- 1 edited
-
bbtemplate/trunk/bbtemplate.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bbtemplate/trunk/bbtemplate.php
r1469370 r1515543 2 2 /** 3 3 * @package BBTemplate 4 * @version 1. 04 * @version 1.1 5 5 */ 6 6 /* … … 9 9 Description: BBPress Templater - quick creation of BBPress Forums from a predefined template. 10 10 Author: Kiera Howe 11 Version: 1. 011 Version: 1.1 12 12 Author URI: http://www.kierahowe.com 13 13 */ … … 49 49 50 50 function bbt_createnew_callback() { 51 $name = $_POST['name'];52 $id = $_POST['id'];51 $name = wp_strip_all_tags( $_POST['name']); 52 $id = intval($_POST['id']); 53 53 if (!function_exists('bbp_insert_forum')) { 54 54 print "You must install BBPress for this to work"; … … 83 83 ) { // If it's a page, OR, if it's a post, can the user edit it? 84 84 //print_r ($_POST); 85 $forums = $_POST['forumtree'];85 $forums = wp_strip_all_tags($_POST['forumtree']); 86 86 add_post_meta($post_id, 'forumtree', $forums, true) OR update_post_meta($post_id, 'forumtree', $forums); 87 87
Note: See TracChangeset
for help on using the changeset viewer.