Path to assets are wrong
-
Hello Share This team,
In your code you don’t use the basics of WordPress development and especially you hardcoded a path like so:
define( 'DIR_URL', '/wp-content/plugins/sharethis-share-buttons/' );
Could you use dedicated WordPress existing variables instead declaring hard coded path, such:
WP_CONTENT_DIR
,WP_CONTENT_URL
,WP_PLUGIN_DIR
,WP_PLUGIN_URL
, or use__DIR__
or evendirname( __FILE__ )
or evenplugin_dir_path()
,plugin_dir_url()
, etc.
Here the workarround isplugin_dir_url(__FILE__)
.Also, you validated another same topic (https://wordpress.org/support/topic/path-to-assets/), which indicates you will patch this issue. It seems not beeing the case during 6 months, for a 1-minute patch, this is not serious at all…
Please be more active and consider updating your plugin to WordPress constraints. This breaks website sadly.
Many thanks for your understanding, looking forward.
You must be logged in to reply to this topic.