Making WordPress.org

Ticket #2331: 2331.diff

File 2331.diff, 810 bytes (added by dimadin, 8 years ago)
  • inc/template-tags.php

     
    887887
    888888                // If no alternative resource was referenced, use the deprecation string, if
    889889                // present.
    890                 if ( ! $deprecation_info && ! empty( $deprecated['content'] ) ) {
    891                         $deprecation_info = ' ' . sanitize_text_field ( $deprecated['content'] );
     890                if ( ! $deprecation_info && ! empty( $deprecated['description'] ) ) {
     891                        $deprecation_info = ' ' . sanitize_text_field ( $deprecated['description'] );
    892892                        // Many deprecation strings use the syntax "Use function()" instead of the
    893893                        // preferred "Use function() instead." Add it in if missing.
    894894                        if ( false === strpos( $deprecation_info, 'instead' ) ) {