Fix urls for composerized WordPress in td-composer

Posted in: Newspaper
Post count: 11

Hello,

There are some problems with the td-composer plugin in combination with a composerized WordPress (http://composer.rarst.net/). The following code:
$parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] );
require_once( $parse_uri[0] . 'wp-load.php' );

in
wp-content/plugins/td-composer/includes/wpeditor.php creates warnings (wp-load file not found) and the visual editor doesn’t open.
It’s better to use ABSPATH since that will always work:
https://developer.wordpress.org/reference/classes/wp_filesystem_base/abspath/

Post count: 20688

Hi,

I don’t believe any tests have been made with the composer you mention, so I could not say if this suggestion will be implemented. I will pass this information to the developer team however, to look it over.

Thanks

Post count: 11

Hi,

Can we get the source code for td-composer? The zip that comes with the theme contains only minified JS files.

Regards,

Post count: 20688

Hi,

You could simply unminify the files if that is needed, there are online tools that can do this. Like this one for example
http://unminify.com/

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.