More comments in WordPress 2.1.2
I noticed the other day that after upgrading to WordPress 2.1.2, many of the ads that the AdSense-Deluxe plugin was adding were not getting really getting added.
Normally I add the necessary AdSense-Deluxe (ASD) code immediately after the 'more' comment. However, if I changed the location of the ASD code, the ads displayed correctly. Eh?
Here's what I did:
Open /wp-includes/post-template.php and change line 83 from:
if ( preg_match('/<!--more(.+?)?-->/', $content, $matches) ) {
to:
if ( preg_match('/<!--more-->/', $content, $matches) ) {
For whatever reason, it replaces any one comment immediately after the more comment. Since the more comment should be entered in that format ...
Search
Links of Note
Support This Site
If my blog was helpful to you, then please consider visiting my Amazon Wishlist.