Make WordPress Core

Ticket #34808: 34808.2.diff

File 34808.2.diff, 1.2 KB (added by perezlabs, 8 years ago)

Added NOTICE or WARNING when any of the functions used. But they are still available until they are completely removed.

  • src/wp-includes/media.php

     
    12061206 * @return string Converted content with 'srcset' and 'sizes' attributes added to images.
    12071207 */
    12081208function wp_make_content_images_responsive( $content ) {
     1209        // Deprecation warning at function call.
     1210    trigger_error( 'Deprecated function called - (wp_make_content_images_responsive).', E_USER_DEPRECATED );
     1211    exit;
     1212   
    12091213        $images = get_media_embedded_in_content( $content, 'img' );
    12101214
    12111215        $selected_images = $attachment_ids = array();
  • src/wp-includes/functions.php

     
    49844984 * @return string Tag RegEx.
    49854985 */
    49864986function get_tag_regex( $tag ) {
     4987        // Deprecation warning at function call.
     4988    trigger_error( 'Deprecated function called - (get_tag_regex).', E_USER_DEPRECATED );
     4989    exit;
     4990   
    49874991        if ( empty( $tag ) )
    49884992                return;
    49894993        return sprintf( '<%1$s[^<]*(?:>[\s\S]*<\/%1$s>|\s*\/>)', tag_escape( $tag ) );