WordPress.org

Make WordPress Core

Ticket #23974: 23974.patch

File 23974.patch, 1.5 KB (added by c3mdigital, 5 years ago)
  • wp-includes/post-formats.php

     
    3838 * @uses has_term()
    3939 *
    4040 * @param string $format The format to check for
    41  * @param object|id $post The post to check. If not supplied, defaults to the current post if used in the loop.
     41 * @param object|int $post The post to check. If not supplied, defaults to the current post if used in the loop.
    4242 * @return bool True if the post has the format, false otherwise.
    4343 */
    4444function has_post_format( $format, $post = null ) {
     
    7777 * @since 3.6.0
    7878 *
    7979 * @param int $post_id
    80  * @return null
     80 * @return array The array of post format metadata
    8181 */
    8282function get_post_format_meta( $post_id = 0 ) {
    8383        $values = array(
     
    260260 * @since 3.6.0
    261261 *
    262262 * @param string $format
     263 * @return string Filtered post format content class
    263264 */
    264265function get_post_format_content_class( $format ) {
    265266        return apply_filters( 'post_format_content_class', 'post-format-content', $format );
    266267}
    267268
    268269/**
    269  * Ouput the class for a post format content wrapper
     270 * Output the class for a post format content wrapper
    270271 *
    271272 * @since 3.6.0
    272273 *
     
    282283 * @since 3.6.0
    283284 *
    284285 * @param string $content
     286 * @param int $id
     287 * @return string Formatted output based on associated post format
    285288 */
    286289function post_formats_compat( $content, $id = 0 ) {
    287290        $post = empty( $id ) ? get_post() : get_post( $id );