Changeset 6304

Show
Ignore:
Timestamp:
08/19/06 06:29:08 (2 years ago)
Author:
GamerZ
Message:

[page_stats] instead of <page_stats>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-stats/trunk/readme.html

    r6295 r6304  
    339339                        </li> 
    340340                        <li> 
    341                               Type '<b>&lt;page_stats&gt</b>' in the post's content area (without the quotes) 
     341                              Type '<b>[page_stats]</b>' in the post's content area (without the quotes) 
    342342                        </li> 
    343343                        <li> 
  • wp-stats/trunk/stats/stats.php

    r6302 r6304  
    468468 
    469469### Function: Place Statistics Page In Content 
    470 add_filter('the_content', 'place_stats', '12'); 
     470add_filter('the_content', 'place_stats', '7'); 
    471471function place_stats($content){ 
    472      $content = preg_replace( "/\<page_stats\>/ise", "stats_page()", $content);  
     472     $content = preg_replace( "/\[page_stats\]/ise", "stats_page()", $content);  
    473473    return $content; 
    474474}