$overridden_template_output = sprintf( '%s', esc_html( str_replace( $theme_root, '', $theme_file ) ) ); if ( $core_version && ( empty( $theme_version ) || version_compare( $theme_version, $core_version, '<' ) ) ) { $outdated = true; $overridden_template_output .= sprintf( /* translators: %1$s is the file version, %2$s is the core version */ esc_html__( 'version %1$s is out of date. The core version is %2$s', 'woocommerce-subscriptions' ), '' . esc_html( $theme_version ) . '', '' . esc_html( $core_version ) . '' ); } $overridden['overrides'][] = $overridden_template_output; } } $overridden['has_outdated_templates'] = $outdated; return $overridden; } /** * Gets the number of Gifted Subscriptions and adds it to the system status. * * @since 7.8.0 - Originally implemented in WooCommerce Subscriptions Gifting 2.1.0. */ private static function set_gifting_information() { $gifted_subscriptions_count = WCS_Gifting::get_gifted_subscriptions_count(); self::$gifting_data['wcsg_gifted_subscriptions_count'] = array( 'name' => _x( 'Gifted Subscriptions Count', 'name for the system status page', 'woocommerce-subscriptions' ), 'label' => _x( 'Gifted Subscriptions Count', 'label for the system status page', 'woocommerce-subscriptions' ), 'data' => array( $gifted_subscriptions_count ), ); } }