WordPress.org

Forums

Quick tip for plugin authors for 2.7 (1 post)

  1. trevorturk
    Member
    Posted 6 years ago #

    if (get_bloginfo('version') >= '2.7') {
      $sfwp_url = get_bloginfo('wpurl') . '/wp-admin/tools.php?page=secure-files.php';
    } else {
      $sfwp_url = get_bloginfo('wpurl') . '/wp-admin/edit.php?page=secure-files.php';
    }

    I just upgraded a plugin of mine to be compatible with 2.7, but retain backwards compatibility. Not sure if I shouldn't have been hard-coding edit.php in there, or if there's a better way to do this, but it's working for me :)

    http://wordpress.org/extend/plugins/secure-files/

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 6 years ago by trevorturk
  • This topic is not a support question
  • WordPress version: 2.7

Tags

No tags yet.