Title: wp-content path hard coded
Last modified: August 21, 2016

---

# wp-content path hard coded

 *  Resolved [akedv](https://wordpress.org/support/users/ak71/)
 * (@ak71)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wp-content-path-hard-coded/)
 * hi, it seems that the wp-content is still hard-coded in some places (e.g. AsaCore.
   php), that’s not a very clean approach!
 * i’m using a different name for the wp-content folder, so this plugin would causes
   lots of 404 if i wouldn’t use a redirect or edit the plugin-files.. till the 
   next update 🙁
 * please fix this, otherwise it’s a great great plugin and i keep on recommending
   it 🙂
 * [http://wordpress.org/plugins/amazonsimpleadmin/](http://wordpress.org/plugins/amazonsimpleadmin/)

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

 *  Plugin Author [Timo](https://wordpress.org/support/users/worschtebrot/)
 * (@worschtebrot)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/wp-content-path-hard-coded/#post-4371852)
 * Thanks for your feedback. You are absolutely right. I fixed this in my dev version.
   Please support me and test it before I will release it.
 * Get those two files and put them in your amazonsimpleadmin plugin dir:
    [http://svn.wp-plugins.org/amazonsimpleadmin/trunk/AsaCore.php](http://svn.wp-plugins.org/amazonsimpleadmin/trunk/AsaCore.php)
   [http://svn.wp-plugins.org/amazonsimpleadmin/trunk/AsaFunctions.php](http://svn.wp-plugins.org/amazonsimpleadmin/trunk/AsaFunctions.php)
 * This should work with your custom wp-content installation. Please let me know.
 *  Thread Starter [akedv](https://wordpress.org/support/users/ak71/)
 * (@ak71)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/wp-content-path-hard-coded/#post-4371866)
 * hi, i just did, seems to work just fine, the AsaFunctions.php isn’t replacing
   any file, right?
 *  Plugin Author [Timo](https://wordpress.org/support/users/worschtebrot/)
 * (@worschtebrot)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/wp-content-path-hard-coded/#post-4371867)
 * Great, happy to hear that it works.
 * Right, AsaFunctions.php is new. I will add this fix to the next official update.
 * Thanks for your help.
 *  Thread Starter [akedv](https://wordpress.org/support/users/ak71/)
 * (@ak71)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/wp-content-path-hard-coded/#post-4371869)
 * oder doch zu früh gefreut?
 *     ```
       Search "wp-content" (2 hits in 2 files)
       amazonsimpleadmin\AsaCore.php (1 hit)
       Line 12:     protected $plugin_dir = '/wp-content/plugins/amazonsimpleadmin';
       amazonsimpleadmin\AsaFunctions.php (1 hit)
       Line 9:         return get_bloginfo('wpurl') . '/wp-content/plugins/amazonsimpleadmin/' . $path;
       ```
   
 *  Plugin Author [Timo](https://wordpress.org/support/users/worschtebrot/)
 * (@worschtebrot)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/wp-content-path-hard-coded/#post-4371871)
 * Nein, das passt schon.
    $plugin_dir wird nicht mehr verwendet, schmeiße ich bald
   mal raus. Und das andere in AsaFunctions.php auf Line 9 ist ein Fallback für 
   meine lokale Entwicklungsumgebung, falls das Plugin per symlink eingebunden ist.

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

The topic ‘wp-content path hard coded’ is closed to new replies.

 * ![](https://ps.w.org/amazonsimpleadmin/assets/icon-256x256.png?rev=1788380)
 * [Affiliate Super Assistent](https://wordpress.org/plugins/amazonsimpleadmin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazonsimpleadmin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazonsimpleadmin/)
 * [Active Topics](https://wordpress.org/support/plugin/amazonsimpleadmin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazonsimpleadmin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazonsimpleadmin/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Timo](https://wordpress.org/support/users/worschtebrot/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/wp-content-path-hard-coded/#post-4371871)
 * Status: resolved