Changeset 930233
- Timestamp:
- 06/11/2014 10:24:32 AM (12 years ago)
- Location:
- archives-for-custom-post-types
- Files:
-
- 2 edited
-
tags/1.0/archives-for-custom-post-types.php (modified) (4 diffs)
-
trunk/archives-for-custom-post-types.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
archives-for-custom-post-types/tags/1.0/archives-for-custom-post-types.php
r930213 r930233 174 174 if ( $results ) { 175 175 $after = $args['after']; 176 foreach ( (array) $results as $result ) {176 foreach ( (array) $results as $result ) { 177 177 $url = get_year_link( $result->year ) . $post_type; 178 178 $text = sprintf( '%d', $result->year ); … … 257 257 } 258 258 if ( $args['echo'] ) { 259 echo $output;259 echo esc_html( $output ); 260 260 } else { 261 261 return $output; … … 271 271 272 272 $post_types = get_post_types( '', 'names' ); 273 $line_separated = implode( "|", $post_types );273 $line_separated = implode( '|', $post_types ); 274 274 275 275 if ( ! isset( $rules['(\d*)/(' . $line_separated . ')$'] ) ) { … … 281 281 function archives_for_custom_post_types_rewrite_rules( $rules ) { 282 282 $post_types = get_post_types( '', 'names' ); 283 $line_separated = implode( "|", $post_types );283 $line_separated = implode( '|', $post_types ); 284 284 285 285 $newrules = array(); -
archives-for-custom-post-types/trunk/archives-for-custom-post-types.php
r930209 r930233 174 174 if ( $results ) { 175 175 $after = $args['after']; 176 foreach ( (array) $results as $result ) {176 foreach ( (array) $results as $result ) { 177 177 $url = get_year_link( $result->year ) . $post_type; 178 178 $text = sprintf( '%d', $result->year ); … … 257 257 } 258 258 if ( $args['echo'] ) { 259 echo $output;259 echo esc_html( $output ); 260 260 } else { 261 261 return $output; … … 271 271 272 272 $post_types = get_post_types( '', 'names' ); 273 $line_separated = implode( "|", $post_types );273 $line_separated = implode( '|', $post_types ); 274 274 275 275 if ( ! isset( $rules['(\d*)/(' . $line_separated . ')$'] ) ) { … … 281 281 function archives_for_custom_post_types_rewrite_rules( $rules ) { 282 282 $post_types = get_post_types( '', 'names' ); 283 $line_separated = implode( "|", $post_types );283 $line_separated = implode( '|', $post_types ); 284 284 285 285 $newrules = array();
Note: See TracChangeset
for help on using the changeset viewer.