Changeset 762579
- Timestamp:
- 08/26/2013 07:58:40 PM (13 years ago)
- File:
-
- 1 edited
-
jetpack/trunk/modules/subscriptions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jetpack/trunk/modules/subscriptions.php
r762565 r762579 283 283 * unknown_status : strange error. Jetpack servers at WordPress.com returned something I didn't understand. 284 284 */ 285 function subscribe( $email, $post_ids = 0, $async = true ) {285 function subscribe( $email, $post_ids = 0, $async = true ) { 286 286 if ( !is_email( $email ) ) { 287 287 return new Jetpack_Error( 'invalid_email' ); … … 302 302 303 303 if ( $async ) { 304 Jetpack::xmlrpc_async_call( 'jetpack.subscribeToSite', $email, $post_id );304 Jetpack::xmlrpc_async_call( 'jetpack.subscribeToSite', $email, $post_id ); 305 305 } else { 306 $xml->addCall( 'jetpack.subscribeToSite', $email, $post_id );306 $xml->addCall( 'jetpack.subscribeToSite', $email, $post_id ); 307 307 } 308 308 } … … 386 386 } 387 387 388 $subscribe = Jetpack_Subscriptions::subscribe( $_REQUEST['email'], 0, false );388 $subscribe = Jetpack_Subscriptions::subscribe( $_REQUEST['email'], 0, false ); 389 389 390 390 if ( is_wp_error( $subscribe ) ) { … … 530 530 global $current_user; 531 531 532 $source = 'widget'; 533 534 extract( $args ); 535 532 $source = 'widget'; 536 533 $instance = wp_parse_args( (array) $instance, $this->defaults() ); 537 534 $title = isset( $instance['title'] ) ? stripslashes( $instance['title'] ) : ''; … … 596 593 <input type="hidden" name="sub-type" value="<?php echo esc_attr( $source ); ?>" /> 597 594 <input type="hidden" name="redirect_fragment" value="<?php echo esc_attr( $widget_id ); ?>" /> 598 <?php 595 <?php 599 596 if ( is_user_logged_in() ) { 600 wp_nonce_field( 'blogsub_subscribe_'. get_current_blog_id(), '_wpnonce', false ); 597 wp_nonce_field( 'blogsub_subscribe_'. get_current_blog_id(), '_wpnonce', false ); 601 598 } 602 599 ?>
Note: See TracChangeset
for help on using the changeset viewer.