Changeset 13202
- Timestamp:
- 02/12/2024 06:54:46 AM (22 months ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
-
admin/metabox/class-helpscout.php (modified) (1 diff)
-
shortcodes/class-upload-handler.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-helpscout.php
r12755 r13202 20 20 // Trim off the rejected prefix/suffix. 21 21 $slug = preg_replace( '/(^rejected-|-rejected(-\d)?$)/i', '', $post->post_name ); 22 23 // If the slug is not set, we can't query HelpScout. 24 if ( ! $post->post_name || ! $slug ) { 25 echo 'Invalid Slug, cannot query emails.'; 26 return; 27 } 28 22 29 $emails = $wpdb->get_results( $wpdb->prepare( 23 30 "SELECT emails.* -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php
r13198 r13202 896 896 global $wpdb; 897 897 898 if ( 'pending' !== $post->post_status ) {898 if ( 'pending' !== $post->post_status || ! $post->post_name ) { 899 899 return false; 900 900 }
Note: See TracChangeset
for help on using the changeset viewer.