Changeset 16954
- Timestamp:
- 12/15/2010 05:09:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r16949 r16954 771 771 $signup = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->signups WHERE activation_key = %s", $key) ); 772 772 773 if ( empty($signup) ) 774 return new WP_Error('invalid_key', __('Invalid activation key.')); 775 776 if ( $signup->active ) 777 return new WP_Error('already_active', __('The site is already active.'), $signup); 773 if ( empty( $signup ) ) 774 return new WP_Error( 'invalid_key', __( 'Invalid activation key.' ) ); 775 776 if ( $signup->active ) { 777 if ( empty( $signup->domain ) ) 778 return new WP_Error( 'already_active', __( 'The user is already active.' ), $signup ); 779 else 780 return new WP_Error( 'already_active', __( 'The site is already active.' ), $signup ); 781 } 778 782 779 783 $meta = unserialize($signup->meta);
Note: See TracChangeset
for help on using the changeset viewer.