Make WordPress Core

Ticket #37461: get_the_title_attribute.diff

File get_the_title_attribute.diff, 811 bytes (added by sillybean, 8 years ago)
  • wp-includes/post-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    5454}
    5555
    5656/**
     57 * Retrieve the sanitized post title.
     58 *
     59 * @since
     60 *
     61 * @param string|array $args {
     62 *     Title attribute arguments. Optional.
     63 * @return string|void String if $echo parameter is false.
     64 */
     65function get_the_title_attribute( $args = '' ) {
     66        $r = wp_parse_args( $args, array( 'echo' => false ) );
     67        return the_title_attribute( $r );
     68}
     69
     70/**
    5771 * Sanitize the current title when retrieving or displaying.
    5872 *
    5973 * Works like the_title(), except the parameters can be in a string or