Plugin Directory

Changeset 2542127


Ignore:
Timestamp:
06/03/2021 04:17:39 PM (5 years ago)
Author:
mattlitzinger
Message:

Version 0.6.1 - Fixed issue w/ disabled admin field

Location:
recommend/trunk
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • recommend/trunk/README.txt

    r2542114 r2542127  
    66Tested up to: 5.7
    77Requires PHP: 7.0
    8 Stable tag: 0.6
     8Stable tag: 0.6.1
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • recommend/trunk/inc/admin.php

    r2542100 r2542127  
    130130      $options[$id] = esc_attr( $options[$id]); 
    131131      $placeholder = (isset($placeholder)) ? $placeholder : '';
    132       $html = '<input class="regular-text" type="text" id="'.$id.'" name="'.$option_name.'['.$id.']" value="'.$options[$id].'" placeholder="'.$placeholder.'" '. disabled(1, $options['likes_disable_labels'], false ) .'/>';
     132      $disabled = ( $options['likes_disable_labels'] == 1 && ( $id == 'likes_singular_label' || $id == 'likes_plural_label' ) ) ? true : false;
     133      $html = '<input class="regular-text" type="text" id="'.$id.'" name="'.$option_name.'['.$id.']" value="'.$options[$id].'" placeholder="'.$placeholder.'" '. disabled(true, $disabled, false ) .'/>';
    133134      $html .= ($desc) ? '<p class="description">' . esc_html( $desc ) .'</p>' : '';
    134135      echo $html;
  • recommend/trunk/recommend.php

    r2542100 r2542127  
    33    Plugin Name: Recommend
    44    Description: Recommend allows you to add a like user action to your content. Unlike social sharing or commenting, the like action is simple and intuitive. The like count can then be used to return more relevant search results or a collection of most liked posts.
    5     Version: 0.6
     5    Version: 0.6.1
    66    Author: Matt Litzinger
    77    Author URI: http://mlitzinger.com
Note: See TracChangeset for help on using the changeset viewer.