Skip to content

Commit

Permalink
Improve version parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bindlegirl committed Feb 8, 2024
1 parent 275396c commit beb720e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions projects/packages/identity-crisis/src/class-identity-crisis.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static function jetpack_connection_disconnect_site_wpcom_filter() {
* @return string
*/
public static function get_safe_mod_doc_url() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
return Redirect::get_url( 'jetpack-support-safe-mode' );
}

Expand Down Expand Up @@ -363,7 +363,7 @@ public function check_response_for_idc( $response ) {
* @return string
*/
public static function prepare_url_for_display( $url ) {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
return untrailingslashit( self::normalize_url_protocol_agnostic( $url ) );
}

Expand Down Expand Up @@ -583,7 +583,7 @@ public static function should_handle_idc() {
* @return void
*/
public function render_error_notice() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
?>
<div class="jp-idc-error__notice dops-notice is-error">
<svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" viewBox="0 0 24 24">
Expand Down Expand Up @@ -706,7 +706,7 @@ public function render_notice_second_step() {
* @return string
*/
public function get_first_step_header_lead() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$html = wp_kses(
sprintf(
/* translators: %s: Safe mode docs URL and site URL. */
Expand Down Expand Up @@ -737,7 +737,7 @@ public function get_first_step_header_lead() {
* @return string
*/
public function get_first_step_header_explanation() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$html = wp_kses(
sprintf(
/* translators: %s: Safe mode docs URL. */
Expand Down Expand Up @@ -765,7 +765,7 @@ public function get_first_step_header_explanation() {
* @return string
*/
public function get_confirm_safe_mode_action_explanation() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$html = wp_kses(
sprintf(
/* translators: %s: Site URL. */
Expand Down Expand Up @@ -794,7 +794,7 @@ public function get_confirm_safe_mode_action_explanation() {
* @return string
*/
public function get_confirm_safe_mode_button_text() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$string = esc_html__( 'Confirm Safe Mode', 'jetpack-idc' );

/**
Expand All @@ -815,7 +815,7 @@ public function get_confirm_safe_mode_button_text() {
* @return string
*/
public function get_first_step_fix_connection_action_explanation() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$html = wp_kses(
sprintf(
/* translators: %s: Site URL. */
Expand Down Expand Up @@ -844,7 +844,7 @@ public function get_first_step_fix_connection_action_explanation() {
* @return string
*/
public function get_first_step_fix_connection_button_text() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$string = esc_html__( "Fix Jetpack's Connection", 'jetpack-idc' );

/**
Expand All @@ -865,7 +865,7 @@ public function get_first_step_fix_connection_button_text() {
* @return string
*/
public function get_second_step_header_lead() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$string = sprintf(
/* translators: %s: Site URL. */
esc_html__( 'Is %1$s the new home of %2$s?', 'jetpack-idc' ),
Expand All @@ -891,7 +891,7 @@ public function get_second_step_header_lead() {
* @return string
*/
public function get_migrate_site_action_explanation() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$html = wp_kses(
sprintf(
/* translators: %s: Site URL. */
Expand Down Expand Up @@ -922,7 +922,7 @@ public function get_migrate_site_action_explanation() {
* @return string
*/
public function get_migrate_site_button_text() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$string = esc_html__( 'Migrate Stats &amp; Subscribers', 'jetpack-idc' );

/**
Expand All @@ -943,7 +943,7 @@ public function get_migrate_site_button_text() {
* @return string
*/
public function get_start_fresh_action_explanation() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$html = wp_kses(
sprintf(
/* translators: %s: Site URL. */
Expand Down Expand Up @@ -974,7 +974,7 @@ public function get_start_fresh_action_explanation() {
* @return string
*/
public function get_start_fresh_button_text() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$string = esc_html__( 'Start Fresh &amp; Create New Connection', 'jetpack-idc' );

/**
Expand All @@ -995,7 +995,7 @@ public function get_start_fresh_button_text() {
* @return string
*/
public function get_unsure_prompt() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$html = wp_kses(
sprintf(
/* translators: %s: Safe mode docs URL. */
Expand Down Expand Up @@ -1083,7 +1083,7 @@ public static function get_mismatched_urls() {
* @return bool True if potentially dynamic site urls were detected in wp-config, false otherwise.
*/
public static function detect_possible_dynamic_site_url() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
_deprecated_function( __METHOD__, 'jetpack-identity-crisis-$$next-version$$' );
$transient_key = 'jetpack_idc_possible_dynamic_site_url_detected';
$transient_val = get_transient( $transient_key );

Expand Down

0 comments on commit beb720e

Please sign in to comment.