Make WordPress Core

Ticket #33956: 339561.patch

File 339561.patch, 854 bytes (added by sebastian.pisula, 9 years ago)
  • wp-includes/post-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    210210}
    211211
    212212/**
     213 * Display the Post Name
     214 *
     215 * @since 4.4.0
     216 *
     217 * @param int $id Optional. Post ID.
     218 */
     219
     220function the_slug( $id = 0 ) {
     221        echo get_the_slug( $id );
     222}
     223
     224/**
     225 * Retrieve the Post Name
     226 *
     227 * @since 4.4.0
     228 *
     229 * @param int $id Optional. Post ID.
     230 *
     231 * @return string
     232 */
     233function get_the_slug( $id = 0 ) {
     234        return apply_filters( 'get_the_slug', get_post_field( 'post_name', $id ) );
     235}
     236
     237/**
    213238 * Display the post content.
    214239 *
    215240 * @since 0.71