Shorten class and method names to reduce redundancy in naming.
This commit is contained in:
parent
af401a7d80
commit
4500e86198
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
use Automattic\Jetpack\Constants;
|
||||
use Automattic\WooCommerce\Internals\WCCom\WCConnectionHelper;
|
||||
use Automattic\WooCommerce\Internal\WCCom\ConnectionHelper as WCConnectionHelper;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
@ -1376,7 +1376,7 @@ CREATE TABLE {$wpdb->prefix}wc_reserved_stock (
|
|||
'support' => '<a href="' . esc_url( apply_filters( 'woocommerce_community_support_url', 'https://wordpress.org/support/plugin/woocommerce/' ) ) . '" aria-label="' . esc_attr__( 'Visit community forums', 'woocommerce' ) . '">' . esc_html__( 'Community support', 'woocommerce' ) . '</a>',
|
||||
);
|
||||
|
||||
if ( WCConnectionHelper::is_wccom_connected() ) {
|
||||
if ( WCConnectionHelper::is_connected() ) {
|
||||
$row_meta['premium_support'] = '<a href="' . esc_url( apply_filters( 'woocommerce_support_url', 'https://woocommerce.com/my-account/tickets/' ) ) . '" aria-label="' . esc_attr__( 'Visit premium customer support', 'woocommerce' ) . '">' . esc_html__( 'Premium support', 'woocommerce' ) . '</a>';
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* @package Automattic\WooCommerce\Internals\WCCom
|
||||
*/
|
||||
|
||||
namespace Automattic\WooCommerce\Internals\WCCom;
|
||||
namespace Automattic\WooCommerce\Internal\WCCom;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
@ -14,14 +14,14 @@ defined( 'ABSPATH' ) || exit;
|
|||
*
|
||||
* Helpers for managing connection to WooCommerce.com.
|
||||
*/
|
||||
final class WCConnectionHelper {
|
||||
final class ConnectionHelper {
|
||||
/**
|
||||
* Check if WooCommerce.com account is connected.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @return bool Whether account is connected.
|
||||
*/
|
||||
public static function is_wccom_connected() {
|
||||
public static function is_connected() {
|
||||
$helper_options = get_option( 'woocommerce_helper_data', array() );
|
||||
if ( array_key_exists( 'auth', $helper_options ) && ! empty( $helper_options['auth'] ) ) {
|
||||
return true;
|
Loading…
Reference in New Issue