WordPress.org

Plugin Directory

Changeset 551385


Ignore:
Timestamp:
05/31/12 14:23:42 (23 months ago)
Author:
nbachiyski
Message:

Better heuristics whether a string contains tracking spans

We used to check if the string cotained data-userid, but sometimes
we get tracking spans without this attribute.

A safer check is to look for ice-wp-, because no tracking span will go
without those.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ice/branches/dev/ice.php

    r548404 r551385  
    234234    function strip_spans( $content, $is_slashed = true ) { 
    235235        // short-circuit if no tracking spans 
    236         if ( strpos( $content, 'data-userid=' ) === false ) 
     236        if ( strpos( $content, 'ice-wp-' ) === false ) 
    237237            return $content; 
    238238 
Note: See TracChangeset for help on using the changeset viewer.