Make WordPress Core

Ticket #31373: 31373-wpcom-stats.diff

File 31373-wpcom-stats.diff, 643 bytes (added by stephdau, 10 years ago)

Better matching for WordPress.co stats gifs.

  • src/wp-admin/includes/class-wp-press-this.php

     
    388388                } else if ( preg_match( '/\/pixel\.(mathtag|quantserve)\.com/', $src ) ) {
    389389                        // See mathtag.com and https://www.quantcast.com/how-we-do-it/iab-standard-measurement/how-we-collect-data/
    390390                        return '';
    391                 } else if ( false !== strpos( $src, '/g.gif' ) ) {
     391                } else if ( preg_match( '/\/[gb]\.gif(\?.+)?$/', $src ) ) {
    392392                        // Classic WP stats gif
    393393                        return '';
    394394                }