Plugin Directory


Ignore:
Timestamp:
11/02/2026 03:08:15 PM (4 days ago)
Author:
amirition
Message:

Update to version 1.4.15 from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • posts-data-table/trunk/src/Simple_Posts_Table.php

    r3695305 r3780094  
    170170                $args['scroll_offset']   = filter_var( $args['scroll_offset'], FILTER_VALIDATE_INT );
    171171
     172                // Strip characters that could form HTML from the date format. The date is also escaped on output.
     173                $args['date_format'] = str_replace( [ '<', '>', '"', "'", '`' ], '', (string) $args['date_format'] );
     174
    172175                if ( empty( $args['date_format'] ) ) {
    173176                        $args['date_format'] = self::$default_args['date_format'];
    … …  
    336339                                        '{categories}' => get_the_category_list( ', ', '', $_post->ID ),
    337340                                        '{tags}'       => get_the_tag_list( '', ', ', '', $_post->ID ),
    338                                         '{date}'       => get_the_date( $args['date_format'], $_post ),
     341                                        '{date}'       => esc_html( get_the_date( $args['date_format'], $_post ) ),
    339342                                        '{author}'     => $author,
    340343                                        '{content}'    => $this->get_post_content( $args['content_length'] ),
Note: See TracChangeset for help on using the changeset viewer.