mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed plugins directory;
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user