Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/jetpack/modules/subscrip...
File: views.php
if ( ! empty( $submit_button_classes ) ) {
[1000] Fix | Delete
$instance['submit_button_classes'] = $submit_button_classes;
[1001] Fix | Delete
}
[1002] Fix | Delete
if ( ! empty( $email_field_classes ) ) {
[1003] Fix | Delete
$instance['email_field_classes'] = $email_field_classes;
[1004] Fix | Delete
}
[1005] Fix | Delete
[1006] Fix | Delete
if ( ! empty( $submit_button_styles ) ) {
[1007] Fix | Delete
$instance['submit_button_styles'] = trim( $submit_button_styles );
[1008] Fix | Delete
}
[1009] Fix | Delete
if ( ! empty( $submit_button_wrapper_styles ) ) {
[1010] Fix | Delete
$instance['submit_button_wrapper_styles'] = trim( $submit_button_wrapper_styles );
[1011] Fix | Delete
}
[1012] Fix | Delete
if ( ! empty( $email_field_styles ) ) {
[1013] Fix | Delete
$instance['email_field_styles'] = trim( $email_field_styles );
[1014] Fix | Delete
}
[1015] Fix | Delete
if ( ! empty( $success_message ) ) {
[1016] Fix | Delete
$instance['success_message'] = trim( $success_message );
[1017] Fix | Delete
}
[1018] Fix | Delete
[1019] Fix | Delete
$args = array(
[1020] Fix | Delete
'before_widget' => '<div class="jetpack_subscription_widget">',
[1021] Fix | Delete
);
[1022] Fix | Delete
ob_start();
[1023] Fix | Delete
the_widget( get_jetpack_blog_subscriptions_widget_classname(), $instance, $args );
[1024] Fix | Delete
$output = ob_get_clean();
[1025] Fix | Delete
[1026] Fix | Delete
return $output;
[1027] Fix | Delete
}
[1028] Fix | Delete
[1029] Fix | Delete
add_shortcode( 'jetpack_subscription_form', 'jetpack_do_subscription_form' );
[1030] Fix | Delete
add_shortcode( 'blog_subscription_form', 'jetpack_do_subscription_form' );
[1031] Fix | Delete
[1032] Fix | Delete
/**
[1033] Fix | Delete
* Register the Subscriptions widget.
[1034] Fix | Delete
*/
[1035] Fix | Delete
function jetpack_blog_subscriptions_init() {
[1036] Fix | Delete
register_widget( get_jetpack_blog_subscriptions_widget_classname() );
[1037] Fix | Delete
}
[1038] Fix | Delete
[1039] Fix | Delete
add_action( 'widgets_init', 'jetpack_blog_subscriptions_init' );
[1040] Fix | Delete
[1041] Fix | Delete
/**
[1042] Fix | Delete
* Sets the default value for `subscription_options` site option.
[1043] Fix | Delete
*
[1044] Fix | Delete
* This default value is available across Simple, Atomic and Jetpack sites,
[1045] Fix | Delete
* including the /sites/$site/settings endpoint.
[1046] Fix | Delete
*
[1047] Fix | Delete
* @param array $default Default `subscription_options` array.
[1048] Fix | Delete
* @param string $option Option name.
[1049] Fix | Delete
* @param bool $passed_default Whether `get_option()` passed a default value.
[1050] Fix | Delete
*
[1051] Fix | Delete
* @return array Default value of `subscription_options`.
[1052] Fix | Delete
*/
[1053] Fix | Delete
function subscription_options_fallback( $default, $option, $passed_default ) {
[1054] Fix | Delete
if ( $passed_default ) {
[1055] Fix | Delete
return $default;
[1056] Fix | Delete
}
[1057] Fix | Delete
[1058] Fix | Delete
$site_url = get_home_url();
[1059] Fix | Delete
$display_url = preg_replace( '(^https?://)', '', untrailingslashit( $site_url ) );
[1060] Fix | Delete
[1061] Fix | Delete
return array(
[1062] Fix | Delete
/* translators: Both %1$s and %2$s is site address */
[1063] Fix | Delete
'invitation' => sprintf( __( "Howdy,\nYou recently subscribed to <a href='%1\$s'>%2\$s</a> and we need to verify the email you provided. Once you confirm below, you'll be able to receive and read new posts.\n\nIf you believe this is an error, ignore this message and nothing more will happen.", 'jetpack' ), $site_url, $display_url ),
[1064] Fix | Delete
'comment_follow' => __( "Howdy.\n\nYou recently followed one of my posts. This means you will receive an email when new comments are posted.\n\nTo activate, click confirm below. If you believe this is an error, ignore this message and we'll never bother you again.", 'jetpack' ),
[1065] Fix | Delete
/* translators: %1$s is the site address */
[1066] Fix | Delete
'welcome' => sprintf( __( 'Cool, you are now subscribed to %1$s and will receive an email notification when a new post is published.', 'jetpack' ), $display_url ),
[1067] Fix | Delete
);
[1068] Fix | Delete
}
[1069] Fix | Delete
[1070] Fix | Delete
add_filter( 'default_option_subscription_options', 'subscription_options_fallback', 10, 3 );
[1071] Fix | Delete
[1072] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function