WordPress.org

Forums

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

  1. tailorvj
    Member
    Posted 1 year 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 1 year ago #

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

  3. tailorvj
    Member
    Posted 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Submitted Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic