Making WordPress.org


Ignore:
Timestamp:
04/06/2017 09:18:35 PM (8 years ago)
Author:
coreymckrill
Message:

WCPT: Rename the application tracker JS and CSS assets

The files tracker.min.js and tracker.min.css were getting flagged
and blocked by ad blockers like uBlock origin. Changing the names to
applications seems to prevent this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/applications/tracker.php

    r3814 r5272  
    8787    wp_register_script(
    8888        'wpc-application-tracker',
    89         plugins_url( 'javascript/tracker/build/tracker.min.js', dirname( __FILE__ ) ),
     89        plugins_url( 'javascript/tracker/build/applications.min.js', dirname( __FILE__ ) ), // this file was renamed from 'tracker', which was getting flagged by ad blockers
    9090        array(),
    9191        1,
     
    9595    wp_register_style(
    9696        'wpc-application-tracker',
    97         plugins_url( 'javascript/tracker/build/tracker.min.css', dirname( __FILE__ ) ),
     97        plugins_url( 'javascript/tracker/build/applications.min.css', dirname( __FILE__ ) ), // this file was renamed from 'tracker', which was getting flagged by ad blockers
    9898        array( 'dashicons', 'list-tables' ),
    9999        1
Note: See TracChangeset for help on using the changeset viewer.