mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-08-31 03:53:15 +08:00
Fixed
This commit is contained in:
parent
e8a6f71029
commit
a7a9ff9503
3 changed files with 8 additions and 13 deletions
|
@ -344,6 +344,7 @@ class MainWP_Child_Stats {
|
|||
if ( null !== $this->filterFunction ) {
|
||||
remove_filter( 'pre_transient_update_core', $this->filterFunction, 99 );
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
private function check_premium_updates( &$information, &$premiumPlugins, &$premiumThemes ) {
|
||||
|
|
|
@ -59,7 +59,7 @@ class MainWP_Client_Report_Base {
|
|||
$mapping_connectors = array(
|
||||
'plugins' => 'installer',
|
||||
'themes' => 'installer',
|
||||
'WordPress' => 'installer',
|
||||
'wordpress' => 'installer', // phpcs:ignore -- lowercase characters.
|
||||
'profiles' => 'users',
|
||||
'comments' => 'comments',
|
||||
'settings' => 'settings',
|
||||
|
@ -557,7 +557,7 @@ class MainWP_Client_Report_Base {
|
|||
if ( 'version' === $data ) {
|
||||
if ( 'old' === $str2 ) {
|
||||
$data = 'old_version';
|
||||
} elseif ( 'current' === $str2 && 'WordPress' === $str1 ) {
|
||||
} elseif ( 'current' === $str2 && 'wordpress' === $str1 ) { // phpcs:ignore -- lowercase characters.
|
||||
$data = 'new_version';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,7 +60,6 @@ class MainWP_Client_Report extends MainWP_Client_Report_Base {
|
|||
* @param string $agent User agent.
|
||||
* @return string $agent Current user agent.
|
||||
*
|
||||
* @deprecated Unused element.
|
||||
*/
|
||||
public function current_agent( $agent ) {
|
||||
if ( isset( $_POST['function'] ) && isset( $_POST['mainwpsignature'] ) ) {
|
||||
|
@ -94,8 +93,7 @@ class MainWP_Client_Report extends MainWP_Client_Report_Base {
|
|||
* Create reports log file.
|
||||
*
|
||||
* @param string $ext File extension.
|
||||
*
|
||||
* @deprecated Unused element.
|
||||
*
|
||||
*/
|
||||
public static function do_reports_log( $ext = '' ) {
|
||||
switch ( $ext ) {
|
||||
|
@ -260,8 +258,7 @@ class MainWP_Client_Report extends MainWP_Client_Report_Base {
|
|||
*
|
||||
* @param $slugs Slugs to hide.
|
||||
* @return array Slugs array.
|
||||
*
|
||||
* @deprecated Unused element.
|
||||
*
|
||||
*/
|
||||
public function hide_update_notice( $slugs ) {
|
||||
|
||||
|
@ -274,8 +271,7 @@ class MainWP_Client_Report extends MainWP_Client_Report_Base {
|
|||
*
|
||||
* @param string $value Value to remove.
|
||||
* @return string Response.
|
||||
*
|
||||
* @deprecated Unused element.
|
||||
*
|
||||
*/
|
||||
public function remove_update_nag( $value ) {
|
||||
|
||||
|
@ -299,8 +295,7 @@ class MainWP_Client_Report extends MainWP_Client_Report_Base {
|
|||
*
|
||||
* @param array $plugins Plugins array.
|
||||
* @return array Plugins array.
|
||||
*
|
||||
* @deprecated Unused element.
|
||||
*
|
||||
*/
|
||||
public function creport_branding_plugin( $plugins ) {
|
||||
foreach ( $plugins as $key => $value ) {
|
||||
|
@ -314,8 +309,7 @@ class MainWP_Client_Report extends MainWP_Client_Report_Base {
|
|||
|
||||
/**
|
||||
* Client Remove Menu.
|
||||
*
|
||||
* @deprecated Unused element.
|
||||
*
|
||||
*/
|
||||
public function creport_remove_menu() {
|
||||
remove_menu_page( 'mainwp_wp_stream' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue