• Resolved tailorvj

    (@tailorvj)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Starr

    (@specialk)

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

    Thread Starter tailorvj

    (@tailorvj)

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Localization support and anti-hacking’ is closed to new replies.