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

  1. tailorvj
    Posted 2 years 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,


  2. Jeff Starr
    Plugin Author

    Posted 2 years ago #

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

  3. tailorvj
    Posted 2 years 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,

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