Changeset 7500
- Timestamp:
- 07/25/2018 06:39:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/applications/wordcamp.php
r6651 r7500 46 46 ob_start(); 47 47 48 if ( isset( $_POST['submit-application'] ) ) { 48 if ( is_rate_limited() ) { 49 $message = 'You have submitted too many applications recently. Please wait and try again in a few hours.'; 50 $notice_classes = 'notice-error'; 51 52 require( dirname( __DIR__ ) . '/views/applications/common/submission-results.php' ); 53 } elseif ( isset( $_POST['submit-application'] ) ) { 49 54 $application_data = validate_data( $_POST ); 50 55 51 if ( is_rate_limited() ) { 52 $message = 'You have submitted too many applications recently. Please wait and try again in a few hours.'; 53 $notice_classes = 'notice-error'; 54 } else if ( is_wp_error( $application_data ) ) { 56 if ( is_wp_error( $application_data ) ) { 55 57 $message = $application_data->get_error_message(); 56 58 $notice_classes = 'notice-error'; … … 85 87 $previous_entries = get_posts( array( 86 88 'post_type' => WCPT_POST_TYPE_ID, 87 'post_status' => 'any',89 'post_status' => get_post_stati(), // This will include trashed posts, unlike 'any'. 88 90 'posts_per_page' => $limit, 89 91 'orderby' => 'date',
Note: See TracChangeset
for help on using the changeset viewer.