- fixed plugins directory;

This commit is contained in:
nikitozzzzzzz
2018-07-03 14:12:45 +03:00
parent cef1c8fa28
commit 22845acfdc
+3 -3
View File
@@ -163,7 +163,7 @@ if ( ! class_exists( 'um\core\Plugin_Updater' ) ) {
$api_params['active_extensions'] = array();
foreach ( $exts as $slug => $data ) {
$plugin_data = get_plugin_data( ABSPATH . "wp-content/plugins/{$slug}" );
$plugin_data = get_plugin_data( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $slug );
$api_params['active_extensions'][$slug] = array(
'slug' => $slug,
@@ -244,7 +244,7 @@ if ( ! class_exists( 'um\core\Plugin_Updater' ) ) {
$exts = $this->um_get_active_plugins();
foreach ( $exts as $slug => $data ) {
$plugin_data = get_plugin_data( ABSPATH . "wp-content/plugins/{$slug}" );
$plugin_data = get_plugin_data( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $slug );
//if response for current product isn't empty check for override
if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[ $slug ] ) )
@@ -331,7 +331,7 @@ if ( ! class_exists( 'um\core\Plugin_Updater' ) ) {
$url = get_site_url( get_current_blog_id() );
$domain = strtolower( urlencode( rtrim( $url, '/' ) ) );
$plugin_data = get_plugin_data( ABSPATH . "wp-content/plugins/{$slug}" );
$plugin_data = get_plugin_data( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $slug );
$api_params = array(
'action' => 'get_last_version',