Changeset 3780094 for posts-data-table/trunk/src/Simple_Posts_Table.php
- Timestamp:
- 11/02/2026 03:08:15 PM (4 days ago)
- File:
-
- 1 edited
-
posts-data-table/trunk/src/Simple_Posts_Table.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
posts-data-table/trunk/src/Simple_Posts_Table.php
r3695305 r3780094 170 170 $args['scroll_offset'] = filter_var( $args['scroll_offset'], FILTER_VALIDATE_INT ); 171 171 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 172 175 if ( empty( $args['date_format'] ) ) { 173 176 $args['date_format'] = self::$default_args['date_format']; … … 336 339 '{categories}' => get_the_category_list( ', ', '', $_post->ID ), 337 340 '{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 ) ), 339 342 '{author}' => $author, 340 343 '{content}' => $this->get_post_content( $args['content_length'] ),
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)