WordPress.org

Ready to get started?Download WordPress

Forums

User Submitted Posts
[resolved] Localization support and anti-hacking (3 posts)

  1. tailorvj
    Member
    Posted 8 months ago #

    Hi, I've added the following lines to your plugin to support localisation and prevent hacking. I would appreciate it if you could please update your code with them:

    // Prevent direct call to script
    if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }

    //i18n - change first parameter to your plugin folder name
    load_plugin_textdomain('usp', false, basename( dirname( __FILE__ ) ) . '/languages' );

    Kind regards,
    Tailor

    http://wordpress.org/plugins/user-submitted-posts/

  2. Jeff Starr
    Member
    Plugin Author

    Posted 8 months ago #

    Both of these suggestions have been implemented in the latest version (20131107). Thanks for the feedback!

  3. tailorvj
    Member
    Posted 8 months ago #

    Great plugin, thanks. BTW, I saw its' presence on post type lists in wp-admin but didn't realise how I could use it to create post types other than the default WordPress post.

    Kind regards,
    Tailor

Reply

You must log in to post.

About this Plugin

About this Topic