• Hi all,
    First off, congrats on the new version, it truly is spiffy.

    I just wanted to post a few quick hacks I’ve had to constantly re-add to my blog in vain hope that maybe they get adopted. These are more “annoyances” than anything else, and feel free to call me an idiot for wanting them. The hack and rationale is provied:

    (All presume a virgin 1.5.1 install, because we all love the virgins)
    ##==
    // wp-includes/comment-functions.php
    //Line:95
    if (ALWAYS_DISPLAY_COMMENT_LINK || (! is_single() && ! is_page())) { //– jrc
    /* I don’t understand why the comment link is disabled for single
    posts. Considering that most of my traffic actually comes from
    folks viewing single posts (via RSS, Yahoo! or pingbacks), not
    giving them a way to comment about anything is just silly.
    Besides, the folks reading my blog are usually more interesting
    than I am.
    */

    // wp-blog-header.php
    //Line:136
    if (!DISPLAY_OLD_CONTENT) { //– jrc
    if ( ($client_last_modified && $client_etag) ?
    // …
    header(‘HTTP/1.x 304 Not Modified’);
    exit;
    }
    }
    } //Line: 152 –jrc
    }
    /* While I appreciate the proper use of 304, a number of
    aggregators aren’t yet smart enough to figure it out, (notably
    Sage for Firefox). Those aggregators simply display a broken
    URL or no content. Not really the best solution, sadly. Since
    I’m no where near using my 25GB a month bandwidth, I made
    this an optional thing too.
    */

    // wp-rss2.php
    //Line: 15
    <?php echo ‘<?xml version=”1.0″ encoding=”‘.get_settings(‘blog_charset’).'”?’.’>’;
    if (RSS_XSL_STYLE_SHEET) //– jrc
    echo ‘<?xml-stylesheet href=”‘.RSS_XSL_STYLE_SHEET.'” type=”text/xsl” media=”screen”?>’.”\n”;
    ?>
    /* Yeah, I like to XSL style my RSS feeds, that way folks that
    click on the link directly get some idea what the heck they are.
    (I know, we all do, but there are a LOT of people out there
    that think RSS is some branch of the Canadian Secret Service.
    */

    And finally:
    // wp-config.php
    //Line: 11
    // the magical defined that make it all work –jrc
    define(‘DISPLAY_OLD_CONTENT’,true);
    define(‘ALWAYS_DISPLAY_COMMENT_LINK’,true);
    define(‘RSS_XSL_STYLE_SHEET’,’https://blog.unitedheroes.net/isb.xsl&#8217;);

    ##==

    Again, thanks for 1.5.1, and I don’t expect anyone to even notice these. I’ve just been applying them to several blogs as of late and figured some other folks might appreciate them.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘1.51 Modifications’ is closed to new replies.