WordPress.org

Make WordPress Core

Ticket #20009: 20009.diff

File 20009.diff, 789 bytes (added by mfields, 6 years ago)
  • wp-includes/post-template.php

     
    370370                $classes = array_merge($classes, $class);
    371371        }
    372372
    373         $classes = array_map('esc_attr', $classes);
     373        $classes = apply_filters( 'post_class', $classes, $class, $post->ID );
     374        $classes = array_map( 'esc_attr', $classes );
    374375
    375         return apply_filters('post_class', $classes, $class, $post->ID);
     376        return $classes;
    376377}
    377378
    378379/**
     
    542543                $class = array();
    543544        }
    544545
     546        $classes = apply_filters( 'body_class', $classes, $class );
    545547        $classes = array_map( 'esc_attr', $classes );
    546548
    547         return apply_filters( 'body_class', $classes, $class );
     549        return $classes;
    548550}
    549551
    550552/**