Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
Deploying version 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Nov 30, 2015
1 parent 7e8cac3 commit bac1bc7
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 32 deletions.
4 changes: 2 additions & 2 deletions delightful-downloads.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Delightful Downloads
Plugin URI: https://delightfuldownloads.com
Description: A super-awesome downloads manager for WordPress.
Version: 1.6
Version: 1.6.1
Author: Ashley Rich
Author URI: http://ashleyrich.com
Text Domain: delightful-downloads
Expand Down Expand Up @@ -96,7 +96,7 @@ public static function get_instance() {
private function setup_constants() {

if( !defined( 'DEDO_VERSION' ) ) {
define( 'DEDO_VERSION', '1.6' );
define( 'DEDO_VERSION', '1.6.1' );
}

if( !defined( 'DEDO_PLUGIN_URL' ) ) {
Expand Down
15 changes: 7 additions & 8 deletions includes/class-dedo-widget-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,16 @@ public function widget( $args, $instance ) {
* @return array
*/
public function update( $new_instance, $old_instance ) {
global $dedo_options;

$instance = array();

$instance['title'] = sanitize_text_field( $new_instance['title'] );
$instance['count'] = absint( $new_instance['count'] );
$instance['orderby'] = sanitize_text_field( $new_instance['orderby'] );
$instance['order'] = sanitize_text_field( $new_instance['order'] );
$instance['style'] = sanitize_text_field( $new_instance['style'] );

if ( $dedo_options['enable_taxonomies'] ) {
$instance['category'] = sanitize_text_field( $new_instance['category'] );
$instance['tag'] = sanitize_text_field( $new_instance['tag'] );
$instance['relation'] = sanitize_text_field( $new_instance['relation'] );
}
$instance['category'] = sanitize_text_field( $new_instance['category'] );
$instance['tag'] = sanitize_text_field( $new_instance['tag'] );
$instance['relation'] = sanitize_text_field( $new_instance['relation'] );

return $instance;
}
Expand Down Expand Up @@ -187,6 +182,10 @@ public function form( $instance ) {
</select>
<small><?php _e( 'Downloads belong to category AND/OR tag.', 'delightful-downloads' ); ?></small>
</p>
<?php else: ?>
<input type="hidden" id="<?php echo $this->get_field_id( 'category' ); ?>" name="<?php echo $this->get_field_name( 'category' ); ?>" value="<?php echo $category; ?>">
<input type="hidden" id="<?php echo $this->get_field_id( 'tag' ); ?>" name="<?php echo $this->get_field_name( 'tag' ); ?>" value="<?php echo $tag; ?>">
<input type="hidden" id="<?php echo $this->get_field_id( 'relation' ); ?>" name="<?php echo $this->get_field_name( 'relation' ); ?>" value="<?php echo $relation; ?>">
<?php endif; ?>

<?php
Expand Down
Binary file modified languages/delightful-downloads-es_ES.mo
Binary file not shown.
Binary file modified languages/delightful-downloads-fr_FR.mo
Binary file not shown.
Binary file modified languages/delightful-downloads-ru_RU.mo
Binary file not shown.
42 changes: 21 additions & 21 deletions languages/delightful-downloads.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: delightful-downloads 1.6\n"
"Project-Id-Version: delightful-downloads 1.6.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2015-11-28 17:51+0000\n"
"POT-Creation-Date: 2015-11-30 19:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -58,7 +58,7 @@ msgstr ""

#: includes/admin/class-dedo-list-table.php:52
#: includes/admin/page-statistics.php:188
#: includes/class-dedo-widget-list.php:138 includes/post-types.php:67
#: includes/class-dedo-widget-list.php:133 includes/post-types.php:67
msgid "Date"
msgstr ""

Expand Down Expand Up @@ -158,13 +158,13 @@ msgstr ""
msgid "Insert"
msgstr ""

#: includes/admin/media-button.php:107 includes/class-dedo-widget-list.php:140
#: includes/admin/media-button.php:107 includes/class-dedo-widget-list.php:135
#: includes/post-types.php:62
msgid "File Size"
msgstr ""

#: includes/admin/media-button.php:108 includes/admin/meta-boxes.php:150
#: includes/class-dedo-widget-list.php:139
#: includes/class-dedo-widget-list.php:134
msgid "Download Count"
msgstr ""

Expand Down Expand Up @@ -643,69 +643,69 @@ msgstr ""
msgid "A list of your site's downloads."
msgstr ""

#: includes/class-dedo-widget-list.php:101 includes/post-types.php:22
#: includes/class-dedo-widget-list.php:96 includes/post-types.php:22
#: includes/post-types.php:34 includes/post-types.php:64
msgid "Downloads"
msgstr ""

#: includes/class-dedo-widget-list.php:128
#: includes/class-dedo-widget-list.php:123
msgid "Title:"
msgstr ""

#: includes/class-dedo-widget-list.php:132
#: includes/class-dedo-widget-list.php:127
msgid "Number of downloads to show:"
msgstr ""

#: includes/class-dedo-widget-list.php:136
#: includes/class-dedo-widget-list.php:131
msgid "Order by:"
msgstr ""

#: includes/class-dedo-widget-list.php:141
#: includes/class-dedo-widget-list.php:136
msgid "Random"
msgstr ""

#: includes/class-dedo-widget-list.php:142 includes/functions.php:88
#: includes/class-dedo-widget-list.php:137 includes/functions.php:88
#: includes/post-types.php:60
msgid "Title"
msgstr ""

#: includes/class-dedo-widget-list.php:146
#: includes/class-dedo-widget-list.php:141
msgid "Order:"
msgstr ""

#: includes/class-dedo-widget-list.php:148
#: includes/class-dedo-widget-list.php:143
msgid "ASC"
msgstr ""

#: includes/class-dedo-widget-list.php:149
#: includes/class-dedo-widget-list.php:144
msgid "DESC"
msgstr ""

#: includes/class-dedo-widget-list.php:153
#: includes/class-dedo-widget-list.php:148
msgid "List Style:"
msgstr ""

#: includes/class-dedo-widget-list.php:163
#: includes/class-dedo-widget-list.php:158
msgid "Category:"
msgstr ""

#: includes/class-dedo-widget-list.php:166 includes/taxonomies.php:26
#: includes/class-dedo-widget-list.php:161 includes/taxonomies.php:26
msgid "All Categories"
msgstr ""

#: includes/class-dedo-widget-list.php:173
#: includes/class-dedo-widget-list.php:168
msgid "Tag:"
msgstr ""

#: includes/class-dedo-widget-list.php:176 includes/taxonomies.php:50
#: includes/class-dedo-widget-list.php:171 includes/taxonomies.php:50
msgid "All Tags"
msgstr ""

#: includes/class-dedo-widget-list.php:183
#: includes/class-dedo-widget-list.php:178
msgid "Relation:"
msgstr ""

#: includes/class-dedo-widget-list.php:188
#: includes/class-dedo-widget-list.php:183
msgid "Downloads belong to category AND/OR tag."
msgstr ""

Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: download, manager, downloads, monitor, shortcode, delightful downloads, file, counter, tracking
Requires at least: 4.2.2
Tested up to: 4.4
Stable tag: 1.6
Stable tag: 1.6.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -83,6 +83,10 @@ Please refer to the [FAQ](https://delightfuldownloads.com/documentation/delightf

== Changelog ==

= 1.6.1 =

* Bug fix: 'PHP Notice: Undefined index: category'

= 1.6 =

* New: Download list widget
Expand Down

0 comments on commit bac1bc7

Please sign in to comment.