WordPress.org

Plugin Directory

Changeset 382871 for sermon-browser


Ignore:
Timestamp:
05/09/11 16:49:30 (3 years ago)
Author:
mark8barnes
Message:

0.44.1 - Fixes bug which breaks sites that have a page with [sermons xxxxx], but no page with just [sermons].

Location:
sermon-browser/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sermon-browser/trunk/sb-includes/readme.txt

    r379390 r382871  
    222222== Upgrade Notice == 
    223223 
     224= 0.44.1 = 
     225Fixes bug which breaks sites that have a page with [sermons xxxxx], but no page with just [sermons]. 
     226 
    224227= 0.44 = 
    225228Fixes several bugs (including an important security fix), and adds support for the admin bar in WordPress 3.1 
     
    229232 
    230233== Changelog == 
     234 
     235= 0.44.1 (5 May 2011) = 
     236* **Bug fix:** Fixes bug which breaks sites that have a page with [sermons xxxxx], but no page with just [sermons]. 
     237* **Enhancement:** Default CSS works much better with Wordpress 3.0+ default Twenty Ten theme (see [demo](http://www.sermonbrowser.com/demo/)). Existing users should reset the template to default to get it. 
    231238 
    232239= 0.44 (30 April 2011) = 
  • sermon-browser/trunk/sb-includes/sb-install.php

    r379041 r382871  
    260260} 
    261261 
     262#content div.sermon-browser table, #content div.sermon-browser td { 
     263    border-top: none; 
     264    border-bottom: none; 
     265    border-left: none; 
     266    border-right: none; 
     267} 
     268 
     269#content div.sermon-browser tr td { 
     270    padding: 4px 0; 
     271} 
     272 
     273#content div.sermon-browser table.podcast table { 
     274    margin: 0 1em; 
     275} 
     276 
     277#content div.sermon-browser td.sermon-title, #content div.sermon-browser td.sermon-passage { 
     278    font-family: "Helvetica Neue",Arial,Helvetica,"Nimbus Sans L",sans-serif; 
     279} 
     280 
    262281div.sermon-browser table.sermons { 
    263282    width: 100%; 
     
    265284} 
    266285 
    267 div.sermon-browser table.sermons td.sermon-title { 
     286#content div.sermon-browser table.sermons td.sermon-title { 
    268287    font-weight:bold; 
    269288    font-size: 140%; 
     
    276295} 
    277296 
    278 div.sermon-browser table.sermons td.preacher { 
     297#content div.sermon-browser table.sermons td.preacher { 
    279298    border-bottom: 1px solid #444444; 
     299    padding-bottom: 1em; 
    280300} 
    281301 
  • sermon-browser/trunk/sermon.php

    r379189 r382871  
    55Description: Upload sermons to your website, where they can be searched, listened to, and downloaded. Easy to use with comprehensive help and tutorials. 
    66Author: Mark Barnes 
    7 Version: 0.44 
     7Version: 0.44.1 
    88Author URI: http://www.4-14.org.uk/ 
    99 
     
    5454* @package common_functions 
    5555*/ 
    56 define('SB_CURRENT_VERSION', '0.44'); 
     56define('SB_CURRENT_VERSION', '0.44.1'); 
    5757define('SB_DATABASE_VERSION', '1.6'); 
    5858add_action ('plugins_loaded', 'sb_hijack'); 
     
    388388function sb_get_page_id() { 
    389389    global $wpdb, $post; 
    390     $pageid = $wpdb->get_var("SELECT ID FROM {$wpdb->posts} WHERE post_content LIKE '%[sermons]%' AND (post_status = 'publish' OR post_status = 'private') AND post_date < NOW();"); 
     390    $pageid = $wpdb->get_var("SELECT ID FROM {$wpdb->posts} WHERE (post_content LIKE '%[sermons]%' OR post_content LIKE '%[sermon]%') AND (post_status = 'publish' OR post_status = 'private') AND post_date < NOW();"); 
    391391    if (!$pageid) 
    392         $pageid = $wpdb->get_var("SELECT ID FROM {$wpdb->posts} WHERE post_content LIKE '%[sermon %' AND (post_status = 'publish' OR post_status = 'private') AND post_date < NOW();"); 
     392        $pageid = $wpdb->get_var("SELECT ID FROM {$wpdb->posts} WHERE (post_content LIKE '%[sermon %' OR post_content LIKE '%[sermons %') AND (post_status = 'publish' OR post_status = 'private') AND post_date < NOW();"); 
    393393    if (!$pageid) 
    394394        return 0; 
     
    407407        $pageid = sb_get_page_id(); 
    408408        if ($pageid == 0) 
    409             return '#'; 
     409            return ''; 
    410410        if (defined('SB_AJAX') && SB_AJAX) 
    411411            return get_bloginfo('wpurl').'/?page_id='.$pageid; // Don't use permalinks in Ajax calls 
Note: See TracChangeset for help on using the changeset viewer.