WordPress.org

Make WordPress Core

Changeset 47789 for trunk


Ignore:
Timestamp:
05/14/2020 07:53:57 AM (7 months ago)
Author:
SergeyBiryukov
Message:

Export: Use correct escaping function for term IDs in <wp:term> nodes.

Follow-up to [34333].

Props DrLightman, marcio-zebedeu.
Fixes #50113.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/export.php

    r47219 r47789  
    502502    <?php foreach ( $terms as $t ) : ?>
    503503    <wp:term>
    504         <wp:term_id><?php echo wxr_cdata( $t->term_id ); ?></wp:term_id>
     504        <wp:term_id><?php echo intval( $t->term_id ); ?></wp:term_id>
    505505        <wp:term_taxonomy><?php echo wxr_cdata( $t->taxonomy ); ?></wp:term_taxonomy>
    506506        <wp:term_slug><?php echo wxr_cdata( $t->slug ); ?></wp:term_slug>
Note: See TracChangeset for help on using the changeset viewer.