1.51 Modifications (3 posts)

  1. jrconlin
    Posted 10 years ago #

    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
    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
    if (!DISPLAY_OLD_CONTENT) { //-- jrc
    if ( ($client_last_modified && $client_etag) ?
    // ...
    header('HTTP/1.x 304 Not Modified');
    } //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


    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.

  2. James Huff
    Volunteer Moderator
    Posted 10 years ago #

    Thanks for going to all that hard work! For these changes to be noticed by the developers, please submit them to the proper location.


  3. angsuman
    Posted 10 years ago #

    I really like your styling RSS idea. May I copy it :)

Topic Closed

This topic has been closed to new replies.

About this Topic