Results 1 to 2 of 2

Thread: Renamed wp-content?

  1. #1
    Marketplace Seller mhupfield's Avatar
    Join Date
    Oct 2012
    No fixed abode.
    Thanked 52 Times in 49 Posts

    Renamed wp-content?

    Renaming your wp-content will cause problems with viewing/downloading invoices. This is because the script that generates the invoices exists outside of WordPress but requires some WordPress functions to work. In order to load these I need the location of the WP install and have to assume wp-content has not been changed.

    I will look into a solution that automates it but for now the following will work:

    In appthemes-invoices/invoice.php : line 4 substitute wp-content with whatever you have renamed your wp-content directory.

    For example, if you have renamed you wp-content folder as data then:

    $parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] );

    would become:

    $parse_uri = explode( 'data', $_SERVER['SCRIPT_FILENAME'] );

  2. #2
    idesignstudio's Avatar
    Join Date
    Jun 2014
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 9
    Last Post: August 14th, 2014, 12:29 PM
  2. Extended content for store widget and content
    By mikericus in forum Clipper General Discussion
    Replies: 0
    Last Post: March 13th, 2013, 09:46 PM
  3. DESCRIPTION Can't Be Renamed & Moved
    By vulgate in forum Help Using ClassiPress
    Replies: 1
    Last Post: April 18th, 2012, 10:20 AM
  4. Unable to locate WordPress Content directory (wp-content).
    By anutka in forum WordPress General Discussion
    Replies: 2
    Last Post: February 15th, 2011, 09:35 AM