X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/plugins/wp-social/app
home
/
hikrsdyp
/
public_html
/
wp-content
/
plugins
/
wp-social
/
app
/
??
..
??
api-routes.php
(4.04 KB)
??
avatar.php
(7.13 KB)
??
counter-settings.php
(1.58 KB)
??
functions_search
(853.71 KB)
??
legacy.php
(949 B)
??
login-settings.php
(5.46 KB)
??
providers.php
(14.95 KB)
??
route.php
(829 B)
??
settings.php
(6.45 KB)
??
share-settings.php
(4.45 KB)
??
share.php
(2.19 KB)
Editing: legacy.php
<?php namespace WP_Social\App; defined('ABSPATH') || exit; class Legacy { public function __construct() { $this->clone_enabled_provider_share(); } public function clone_enabled_provider_share() { $enabled_providers = Settings::instance()->get_enabled_providers_share(); if(empty($enabled_providers)) { $old = Settings::instance()->get_share_provider_settings(); $tmp = []; if(empty($old)) { $core_provider = Providers::get_core_providers_share(); foreach($core_provider as $key => $item) { $tmp[$key]['enable'] = ''; } $settings['social'] = $tmp; Settings::instance()->update_share_provider_settings($settings); return true; } foreach($old['social'] as $key => $item) { $tmp[$key]['enable'] = empty($item['enable']) ? '' : 1; } $settings['social'] = $tmp; Settings::instance()->update_share_provider_settings($settings); return true; } return true; } }
Upload File
Create Folder