Ticket #2331: 2331.diff
File 2331.diff, 810 bytes (added by , 8 years ago) |
---|
-
inc/template-tags.php
887 887 888 888 // If no alternative resource was referenced, use the deprecation string, if 889 889 // 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'] ); 892 892 // Many deprecation strings use the syntax "Use function()" instead of the 893 893 // preferred "Use function() instead." Add it in if missing. 894 894 if ( false === strpos( $deprecation_info, 'instead' ) ) {