error[] = '
' . sprintf( '
' . esc_html__( 'RECOMMENDED', 'redux-framework' ) . ': ' . esc_html__( 'If you are submitting to WordPress.org Theme Repository, it is', 'redux-framework' ) . '
' . esc_html__( 'strongly', 'redux-framework' ) . ' ' . esc_html__( 'suggested that you read', 'redux-framework' ) . '
' . esc_html__( 'this document', 'redux-framework' ) . ', ' . esc_html__( 'or your theme will be rejected because of Redux.', 'redux-framework' ), 'https://docsv3.redux.io/core/wordpress-org-submissions/' ) . '
';
$ret = false;
} else {
// TODO Granular WP.org tests!!!
// Check for Tracking.
$tracking = $redux['dir'] . 'inc/tracking.php';
if ( file_exists( $tracking ) ) {
$this->error[] = '' . sprintf( '' . esc_html__( 'REQUIRED', 'redux-framework' ) . ': ' . esc_html__( 'You MUST delete', 'redux-framework' ) . ' %s , ' . esc_html__( 'or your theme will be rejected by WP.org theme submission because of Redux.', 'redux-framework' ), $tracking ) . '
';
$ret = false;
}
// Embedded CDN package
// use_cdn
// Arguments.
$args = '';
$args .= "'save_defaults' => false ";
$args .= "'use_cdn' => false ";
$args .= "'customizer_only' => true Non-Customizer Based Panels are Prohibited within WP.org Themes ";
$args .= "'database' => 'theme_mods' (' . esc_html__( 'Optional', 'redux-framework' ) . ') ";
$args .= '
';
$this->error[] = '' . esc_html__( 'RECOMMENDED', 'redux-framework' ) . ': ' . esc_html__( 'The following arguments MUST be used for WP.org submissions, or you will be rejected because of your Redux configuration.', 'redux-framework' ) . $args . '
';
}
}
return $ret;
}
/**
* Return error array.
*
* @return array
*/
public function getError(): array {
return $this->error;
}
}
$themechecks[] = new Redux_Embedded();