Plugin Directory

Changeset 2331869


Ignore:
Timestamp:
06/28/2020 06:47:00 AM (6 years ago)
Author:
dpowney
Message:

Fix: Auto placement post type issue

Location:
multi-rating/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • multi-rating/trunk/includes/auto-placement.php

    r2331585 r2331869  
    3232    $rating_results_position = get_post_meta( $post->ID, Multi_Rating::RATING_RESULTS_POSITION_POST_META, true );
    3333
    34     if ( $rating_form_position != Multi_Rating::DO_NOT_SHOW ) {
    35 
     34    if ( $rating_form_position != Multi_Rating::DO_NOT_SHOW && ! ( $rating_form_position == '' && ! MR_Utils::check_post_type_enabled( $post_id ) ) ) {
     35       
    3636        // use default rating form position
    3737        if ( $rating_form_position == '' ) {
     
    4848    }
    4949
    50     if ( $rating_results_position != Multi_Rating::DO_NOT_SHOW ) {
     50    if ( $rating_results_position != Multi_Rating::DO_NOT_SHOW && ! ( $rating_results_position == '' && ! MR_Utils::check_post_type_enabled( $post_id ) ) ) {
    5151
    5252        // use default rating results position
     
    118118
    119119    $rating_results_position = get_post_meta( $post->ID, Multi_Rating::RATING_RESULTS_POSITION_POST_META, true );
    120     if ( $rating_results_position == Multi_Rating::DO_NOT_SHOW ) {
     120    if ( $rating_results_position == Multi_Rating::DO_NOT_SHOW || ( $rating_results_position == '' && ! MR_Utils::check_post_type_enabled( $post_id ) ) ) {
    121121        return $title;
    122122    }
  • multi-rating/trunk/multi-rating.php

    r2331585 r2331869  
    44Plugin URI: http://wordpress.org/plugins/multi-rating/
    55Description: A powerful rating system and review plugin for WordPress.
    6 Version: 5.0
     6Version: 5.0.1
    77Author: Daniel Powney
    88Author URI: http://danielpowney.com
     
    3434     */
    3535    const
    36     VERSION = '5.0',
     36    VERSION = '5.0.1',
    3737    ID = 'multi-rating',
    3838
  • multi-rating/trunk/readme.txt

    r2331596 r2331869  
    8686
    8787== Changelog ==
     88
     89= 5.0.1 (28/06/2020) =
     90Fix: Auto placement post type issue
    8891
    8992= 5.0 (27/06/2020) =
Note: See TracChangeset for help on using the changeset viewer.