mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 11:14:36 +00:00
Fix some hackificator odds and ends in wp-admin:
* `wp-activate.php` and `wp-admin/themes.php` don't need the closing PHP tag * Switch single quotes for HTML attribute values to double in a few places * Convert `include_once file.php` syntax to `include_once( 'file.php' )` * Add access modifiers to methods/members in: `_WP_List_Table_Compat`, `Walker_Nav_Menu_Edit`, `Walker_Nav_Menu_Checklist`, `WP_Screen`, `Walker_Category_Checklist` * `edit_user()` doesn't need to import the `$wpdb` global * `wp_list_widgets()` doesn't need to import the `$sidebars_widgets` global * switch/endswitch syntax is not supported in Hack * A `<ul>` in `wp-admin/users.php` is unclosed See #27881. git-svn-id: https://develop.svn.wordpress.org/trunk@28500 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -441,8 +441,9 @@ function export_wp( $args = array() ) {
|
||||
<wp:meta_key><?php echo $meta->meta_key; ?></wp:meta_key>
|
||||
<wp:meta_value><?php echo wxr_cdata( $meta->meta_value ); ?></wp:meta_value>
|
||||
</wp:postmeta>
|
||||
<?php endforeach; ?>
|
||||
<?php $comments = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam'", $post->ID ) );
|
||||
<?php endforeach;
|
||||
|
||||
$comments = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam'", $post->ID ) );
|
||||
foreach ( $comments as $c ) : ?>
|
||||
<wp:comment>
|
||||
<wp:comment_id><?php echo $c->comment_ID; ?></wp:comment_id>
|
||||
|
||||
Reference in New Issue
Block a user