Plugin Directory

Changeset 1725354


Ignore:
Timestamp:
09/06/2017 06:42:41 AM (9 years ago)
Author:
hozyali
Message:

releasing version 1.7. added wp_kses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-jobs/tags/1.7/wp-jobs.php

    r1723893 r1725354  
    310310//      update_custom_meta($postID, addslashes($_POST['wp_jobs_salary']), 'wp_jobs_salary');
    311311    }
     312    $qlf_html = array(
     313        'a' => array(
     314            'href' => array(),
     315            'title' => array()
     316        ),
     317        'img' => array(
     318            'src' => array(),
     319            'title' => array(),
     320            'alt' => array(),
     321        ),
     322        'br' => array(),
     323        'p' => array(),
     324        'em' => array(),
     325        'strong' => array(),
     326        'ul' => array(),
     327        'ol' => array(),
     328        'li' => array(),
     329        'blockquote' => array(),
     330        'span' => array(
     331            'style' => array(),
     332            'title' => array()
     333        ),
     334    );
    312335    if ($_POST['wpjobseditorqualification']) {
    313         update_post_meta($postID, 'wpjobseditorqualification', $_POST['wpjobseditorqualification']);
    314 //      update_custom_meta($postID, addslashes($_POST['wpjobseditorqualification']), 'wpjobseditorqualification');
     336        update_post_meta($postID, 'wpjobseditorqualification', wp_kses($_POST['wpjobseditorqualification'], $qlf_html));
    315337    }
    316338}
Note: See TracChangeset for help on using the changeset viewer.