WordPress.org

Plugin Directory

Changeset 1741437


Ignore:
Timestamp:
10/05/17 09:28:55 (13 days ago)
Author:
mostafa.s1990
Message:

Update top referring

Location:
wp-statistics
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-statistics/tags/12.1.3/includes/log/top-referring.php

    r1741432 r1741437  
    6363        } 
    6464 
    65         $urls[] = $url['host']; 
     65        $urls[] = $url['scheme'] . '://' . $url['host']; 
    6666    } 
    6767 
     
    165165                                    $i ++; 
    166166                                    $referrer_html = $WP_Statistics->html_sanitize_referrer( $items ); 
    167  
     167                                    $referrer_html = parse_url($referrer_html)['host']; 
    168168                                    echo "<div class='log-item'>"; 
    169169                                    echo "<div class='log-referred'>{$i} - <a href='?page=" . WP_STATISTICS_REFERRERS_PAGE . "&referr=" . $referrer_html . $date_args . "'>" . $referrer_html . "</a></div>"; 
  • wp-statistics/tags/12.1.3/readme.txt

    r1741432 r1741437  
    293293* Fixed: Correct numbering for pages > 1 in Top Referring page. [#22](https://github.com/wp-statistics/wp-statistics/pull/22/files) 
    294294* Fixed: Don't run the SQL if `$reffer` is not set. [#21](https://github.com/wp-statistics/wp-statistics/pull/21) 
     295* Fixed: Refferer url scheme. [#24](https://github.com/wp-statistics/wp-statistics/pull/24) Thanks [Farhad Sakhaei](https://github.com/parsmizban) 
    295296* Fixed: Network menu icon. 
    296297 
  • wp-statistics/trunk/includes/log/top-referring.php

    r1741432 r1741437  
    6363        } 
    6464 
    65         $urls[] = $url['host']; 
     65        $urls[] = $url['scheme'] . '://' . $url['host']; 
    6666    } 
    6767 
     
    165165                                    $i ++; 
    166166                                    $referrer_html = $WP_Statistics->html_sanitize_referrer( $items ); 
    167  
     167                                    $referrer_html = parse_url($referrer_html)['host']; 
    168168                                    echo "<div class='log-item'>"; 
    169169                                    echo "<div class='log-referred'>{$i} - <a href='?page=" . WP_STATISTICS_REFERRERS_PAGE . "&referr=" . $referrer_html . $date_args . "'>" . $referrer_html . "</a></div>"; 
  • wp-statistics/trunk/readme.txt

    r1741432 r1741437  
    293293* Fixed: Correct numbering for pages > 1 in Top Referring page. [#22](https://github.com/wp-statistics/wp-statistics/pull/22/files) 
    294294* Fixed: Don't run the SQL if `$reffer` is not set. [#21](https://github.com/wp-statistics/wp-statistics/pull/21) 
     295* Fixed: Refferer url scheme. [#24](https://github.com/wp-statistics/wp-statistics/pull/24) Thanks [Farhad Sakhaei](https://github.com/parsmizban) 
    295296* Fixed: Network menu icon. 
    296297 
Note: See TracChangeset for help on using the changeset viewer.