Plugin Directory

Changeset 1515543


Ignore:
Timestamp:
10/15/2016 05:50:30 PM (9 years ago)
Author:
jxowe
Message:

Minor Fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bbtemplate/trunk/bbtemplate.php

    r1469370 r1515543  
    22/**
    33 * @package BBTemplate
    4  * @version 1.0
     4 * @version 1.1
    55 */
    66/*
     
    99Description: BBPress Templater - quick creation of BBPress Forums from a predefined template.
    1010Author: Kiera Howe
    11 Version: 1.0
     11Version: 1.1
    1212Author URI: http://www.kierahowe.com
    1313*/
     
    4949
    5050function bbt_createnew_callback() {
    51     $name = $_POST['name'];
    52     $id = $_POST['id'];
     51    $name = wp_strip_all_tags( $_POST['name']);
     52    $id = intval($_POST['id']);
    5353    if (!function_exists('bbp_insert_forum')) {
    5454        print "You must install BBPress for this to work";
     
    8383        ) { // If it's a page, OR, if it's a post, can the user edit it?
    8484        //print_r ($_POST);
    85         $forums = $_POST['forumtree'];
     85        $forums = wp_strip_all_tags($_POST['forumtree']);
    8686        add_post_meta($post_id, 'forumtree', $forums, true) OR update_post_meta($post_id, 'forumtree', $forums);
    8787
Note: See TracChangeset for help on using the changeset viewer.