WordPress.org

Plugin Directory

Changeset 1479614


Ignore:
Timestamp:
08/20/16 17:32:44 (12 months ago)
Author:
jazzs3quence
Message:

1.4.18 update. fixes issues that were not fully resolved in 1.4.17. more details in changelog.

Location:
book-review-library
Files:
58 added
3 edited

Legend:

Unmodified
Added
Removed
  • book-review-library/trunk/book-review-library.php

    r1477078 r1479614  
    1111 * Plugin URI:  http://museumthemes.com/book-review-library/ 
    1212 * Description: A book cataloguing and review system designed with bookophiles and librarians in mind. 
    13  * Version:     1.4.17 
     13 * Version:     1.4.18 
    1414 * Author:      Chris Reynolds 
    1515 * Author URI:  http://chrisreynolds.io 
  • book-review-library/trunk/readme.txt

    r1477078 r1479614  
    55Requires at least: 3.6 
    66Tested up to: 4.6 
    7 Stable tag: 1.4.17 
     7Stable tag: 1.4.18 
    88License: GPLv3 
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html 
     
    148148== Upgrade Notice == 
    149149 
    150 = 1.4.17 = 
     150= 1.4.18 = 
    151151* This update fixes a bug with WordPress 4.6. All users should upgrade to this version prior to updating WordPress. 
    152152 
     
    155155 
    156156== Changelog == 
     157 
     158= 1.4.18 = 
     159* fixed issue where taxonomies that were disabled were throwing an error when we were checking if terms from those taxonomies existed. same issue that was resolved in 1.4.17, just more places that needed the fix applied to them. 
    157160 
    158161= 1.4.17 = 
  • book-review-library/trunk/views/public.php

    r1477078 r1479614  
    226226 
    227227    $meta = '<div class="post-meta">'; 
    228     if ( has_term( '','rating' ) ) { 
     228    if ( $options['rating'] && has_term( '','rating' ) ) { 
    229229        $rating = get_rating(); 
    230230        if ( $rating == 'zero' ) { 
     
    237237        $meta .= '</span><br />'; 
    238238    } 
    239     if ( has_term( '','review-author' ) && is_singular( 'book-review' ) ) { 
     239    if ( $options['review-author'] && has_term( '','review-author' ) && is_singular( 'book-review' ) ) { 
    240240        $rev_auth = get_term_by( 'name', get_review_author(), 'review-author' ); 
    241241        $rev_auth_slug = $rev_auth->slug; 
     
    245245        $meta .= '</span><br />'; 
    246246    } 
    247     if ( has_term( '', 'reading-level' ) ) { 
     247    if ( $options['reading-level'] && has_term( '', 'reading-level' ) ) { 
    248248        $meta .= '<span class="reading-level">'; 
    249249        $meta .= sprintf( __( 'Reading Level: %s', 'book-review-library' ), get_reading_level() ); 
     
    274274        $postmeta .= '<span class="genre">' . sprintf( __( '<strong>Genre:</strong> %s', 'book-review-library' ), get_genres() ) . '</span><br />'; 
    275275    } 
    276     if ( has_term( '','series' ) ) { 
     276    if ( $options['series'] && has_term( '','series' ) ) { 
    277277        $postmeta .= '<span class="series">' . sprintf( __( '<strong>Series:</strong> %s | ', 'book-review-library' ), get_book_series() ) . '</span>'; 
    278278    } 
    279     if ( has_term( '','subject' ) ) { 
     279    if ( $options['subject'] && has_term( '','subject' ) ) { 
    280280        $postmeta .= '<span class="subjects">' . sprintf( __( '<strong>Subjects:</strong> %s', 'book-review-library' ), get_subjects() ) . '</span><br />'; 
    281281    } 
    282     if ( has_term( '','illustrator' ) ) { 
     282    if ( $options['illustrator'] && has_term( '','illustrator' ) ) { 
    283283        $postmeta .= '<span class="illustrator">' . sprintf( __( '<strong>Illustrated by</strong> %s', 'book-review-library' ), get_illustrator() ) . '</span>'; 
    284284    } 
Note: See TracChangeset for help on using the changeset viewer.