Plugin Directory

Changeset 930233


Ignore:
Timestamp:
06/11/2014 10:24:32 AM (12 years ago)
Author:
jacklenox
Message:

WordPress coding standards fixes

Location:
archives-for-custom-post-types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • archives-for-custom-post-types/tags/1.0/archives-for-custom-post-types.php

    r930213 r930233  
    174174        if ( $results ) {
    175175            $after = $args['after'];
    176             foreach ( (array) $results as $result) {
     176            foreach ( (array) $results as $result ) {
    177177                $url = get_year_link( $result->year ) . $post_type;
    178178                $text = sprintf( '%d', $result->year );
     
    257257    }
    258258    if ( $args['echo'] ) {
    259         echo $output;
     259        echo esc_html( $output );
    260260    } else {
    261261        return $output;
     
    271271
    272272    $post_types = get_post_types( '', 'names' );
    273     $line_separated = implode( "|", $post_types );
     273    $line_separated = implode( '|', $post_types );
    274274
    275275    if ( ! isset( $rules['(\d*)/(' . $line_separated . ')$'] ) ) {
     
    281281function archives_for_custom_post_types_rewrite_rules( $rules ) {
    282282    $post_types = get_post_types( '', 'names' );
    283     $line_separated = implode( "|", $post_types );
     283    $line_separated = implode( '|', $post_types );
    284284
    285285    $newrules = array();
  • archives-for-custom-post-types/trunk/archives-for-custom-post-types.php

    r930209 r930233  
    174174        if ( $results ) {
    175175            $after = $args['after'];
    176             foreach ( (array) $results as $result) {
     176            foreach ( (array) $results as $result ) {
    177177                $url = get_year_link( $result->year ) . $post_type;
    178178                $text = sprintf( '%d', $result->year );
     
    257257    }
    258258    if ( $args['echo'] ) {
    259         echo $output;
     259        echo esc_html( $output );
    260260    } else {
    261261        return $output;
     
    271271
    272272    $post_types = get_post_types( '', 'names' );
    273     $line_separated = implode( "|", $post_types );
     273    $line_separated = implode( '|', $post_types );
    274274
    275275    if ( ! isset( $rules['(\d*)/(' . $line_separated . ')$'] ) ) {
     
    281281function archives_for_custom_post_types_rewrite_rules( $rules ) {
    282282    $post_types = get_post_types( '', 'names' );
    283     $line_separated = implode( "|", $post_types );
     283    $line_separated = implode( '|', $post_types );
    284284
    285285    $newrules = array();
Note: See TracChangeset for help on using the changeset viewer.