Title: Smarter wp-load.php Checking
Last modified: August 22, 2016

---

# Smarter wp-load.php Checking

 *  [Cliff Seal](https://wordpress.org/support/users/cliffseal/)
 * (@cliffseal)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/smarter-wp-loadphp-checking/)
 * Hi! I’m working with your plugin for a customer, but the plugin was unable to
   find `wp-load.php` when firing off the TinyMCE modals. This is due to an unusual—
   but totally supported—structure of WordPress files.
 * To fix it, I had to hardcode the path, but we’ve instituted a better way in a
   plugin I author.
 * Take a look at this gist: [https://gist.github.com/logoscreative/62658ec041e4b84392c7](https://gist.github.com/logoscreative/62658ec041e4b84392c7)
 * It attempts to find the `wp-load.php` file, similar to what your `$bootstrapSearchDir`
   variable is trying to store. In our case, however, if nothing is found, it also
   looks for a file that a user can put into the directory that tells it where to
   look: [https://github.com/Pardot/pardot-for-wordpress/#the-editor-popup-doesnt-work-and-i-know-that-my-wordpress-installation-is-a-little-different](https://github.com/Pardot/pardot-for-wordpress/#the-editor-popup-doesnt-work-and-i-know-that-my-wordpress-installation-is-a-little-different)
 * It’s pretty easy to implement. Might give it a look and consider adding it.
 * Thanks!
 * [https://wordpress.org/plugins/dsidxpress/](https://wordpress.org/plugins/dsidxpress/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [LindzConnell](https://wordpress.org/support/users/lindzconnell/)
 * (@lindzconnell)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/smarter-wp-loadphp-checking/#post-5701189)
 * Hey Cliff,
 * Thanks for your note! I will pass this along to our Developers to check out. 
   Have a great day!
 * Thank you,
 * Lindsay
 *  [LindzConnell](https://wordpress.org/support/users/lindzconnell/)
 * (@lindzconnell)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/smarter-wp-loadphp-checking/#post-5701190)
 * Hey Cliff,
 * Thanks again for your note. Our developers will soon be looking into improving
   our wp-load.php in the dsIDXpress plugin. Have a great day!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Smarter wp-load.php Checking’ is closed to new replies.

 * ![](https://ps.w.org/dsidxpress/assets/icon-128x128.png?rev=2902025)
 * [Diverse Solutions IDX Real Estate Listings & MLS Search](https://wordpress.org/plugins/dsidxpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dsidxpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dsidxpress/)
 * [Active Topics](https://wordpress.org/support/plugin/dsidxpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dsidxpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dsidxpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [LindzConnell](https://wordpress.org/support/users/lindzconnell/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/smarter-wp-loadphp-checking/#post-5701190)
 * Status: not resolved