• 14 Sep 2008 /  This Blog

    By default, Wordpress make a private or protected post title look like this:

    (Private) MyBlogEntryTitle

    I’ve hacked it to look like this:

    MyBlogEntryTitle (Private)

    Really simple, really.

    The hack is to wp-includes/post-template.php, where I change the get_the_title() function to read:

    function get_the_title( $id = 0 ) {
            $post = &get_post($id);
    
            $title = $post->post_title;
    
            if ( !is_admin() ) {
                    // 2008-08-31, RS, moved Protected and Private text to end of title
                    if ( !empty($post->post_password) )
                            $title = sprintf(__('%s (Protected)'), $title);
                    else if ( isset($post->post_status) && 'private' == $post->post_status )
                            $title = sprintf(__('%s (Private)'), $title);
            }
            return apply_filters( 'the_title', $title );
    }

    Yeah, yeah, I know the curly braces should be on their own line but I’m not fixing Wordpress’ code formatting, just its functionality.

    Mostly just documenting this so I don’t forget, ’specially as I need to do an upgrade of this blog to 3.6.2.  A little inline documentation goes a long way, though.

    Tags: , ,

  • Fiddling

    Comments Off
    31 Aug 2008 /  This Blog

    I was going to bed 30 minutes ago.  And I stayed up fiddling with the blog settings, just getting that last little bit all correctly configured and in the proper layout.  Doh.

    All in order, now.  I’m off to bed, really this time.

    Current Mood:Tired emoticon Tired

    Tags:

  • Blog Upgrade and Purge

    Comments Off
    30 Aug 2008 /  This Blog

    Well, that’s purged everything from the old blog and given me a clean slate to work with. The majority of posts from here will be private, invisible to everyone but me. I may post some public stuff but I need a spot to drop my thoughts, daily, without any wish/need to vet for suitability. The old posts won’t really be missed, though I do have a couple of different backups in different formats just in case I find a need for them.

    I’ve also purged a lot of the modifications, just reinstalling those I really need or that will help me.

    Total time, around four hours, including some farting around bug-fixing the theme I’m using.

    Current Mood:Busy emoticon Busy