Flamingo - Version 2.2.2

Version Description

  • Address Book: Hides the Filter button if there is no working filter.
Download this release

Release Info

Developer takayukister
Plugin Icon 128x128 Flamingo
Version 2.2.2
Comparing to
See all releases

Code changes from version 2.2.1 to 2.2.2

admin/admin.php CHANGED
@@ -725,7 +725,7 @@ function flamingo_load_inbound_admin() {
725
  $row[] = $col;
726
  }
727
 
728
- $row[] = get_post_time( 'c', true, $item->id() ); // Date
729
 
730
  echo "\r\n" . flamingo_csv_row( $row );
731
  }
725
  $row[] = $col;
726
  }
727
 
728
+ $row[] = get_post_time( 'c', false, $item->id() ); // Date
729
 
730
  echo "\r\n" . flamingo_csv_row( $row );
731
  }
admin/includes/class-contacts-list-table.php CHANGED
@@ -115,7 +115,9 @@ class Flamingo_Contacts_List_Table extends WP_List_Table {
115
  <div class="alignleft actions">
116
  <?php
117
  if ( 'top' == $which ) {
118
- wp_dropdown_categories( array(
 
 
119
  'taxonomy' => Flamingo_Contact::contact_tag_taxonomy,
120
  'name' => 'contact_tag_id',
121
  'show_option_all' => __( 'View all tags', 'flamingo' ),
@@ -125,8 +127,11 @@ class Flamingo_Contacts_List_Table extends WP_List_Table {
125
  'selected' => $tag,
126
  ) );
127
 
128
- submit_button( __( 'Filter', 'flamingo' ),
129
- 'secondary', false, false, array( 'id' => 'post-query-submit' ) );
 
 
 
130
 
131
  submit_button( __( 'Export', 'flamingo' ), 'secondary', 'export', false );
132
  }
115
  <div class="alignleft actions">
116
  <?php
117
  if ( 'top' == $which ) {
118
+ $filters = array();
119
+
120
+ $filters[] = wp_dropdown_categories( array(
121
  'taxonomy' => Flamingo_Contact::contact_tag_taxonomy,
122
  'name' => 'contact_tag_id',
123
  'show_option_all' => __( 'View all tags', 'flamingo' ),
127
  'selected' => $tag,
128
  ) );
129
 
130
+ if ( array_filter( $filters ) ) {
131
+ submit_button( __( 'Filter', 'flamingo' ),
132
+ 'secondary', false, false, array( 'id' => 'post-query-submit' )
133
+ );
134
+ }
135
 
136
  submit_button( __( 'Export', 'flamingo' ), 'secondary', 'export', false );
137
  }
flamingo.php CHANGED
@@ -5,21 +5,24 @@ Description: A trustworthy message storage plugin for Contact Form 7.
5
  Author: Takayuki Miyoshi
6
  Text Domain: flamingo
7
  Domain Path: /languages/
8
- Version: 2.2.1
9
  */
10
 
11
- define( 'FLAMINGO_VERSION', '2.2.1' );
12
 
13
  define( 'FLAMINGO_PLUGIN', __FILE__ );
14
 
15
  define( 'FLAMINGO_PLUGIN_BASENAME',
16
- plugin_basename( FLAMINGO_PLUGIN ) );
 
17
 
18
  define( 'FLAMINGO_PLUGIN_NAME',
19
- trim( dirname( FLAMINGO_PLUGIN_BASENAME ), '/' ) );
 
20
 
21
  define( 'FLAMINGO_PLUGIN_DIR',
22
- untrailingslashit( dirname( FLAMINGO_PLUGIN ) ) );
 
23
 
24
  if ( ! defined( 'FLAMINGO_MOVE_TRASH_DAYS' ) ) {
25
  define( 'FLAMINGO_MOVE_TRASH_DAYS', 30 );
@@ -27,7 +30,8 @@ if ( ! defined( 'FLAMINGO_MOVE_TRASH_DAYS' ) ) {
27
 
28
  // Deprecated, not used in the plugin core. Use flamingo_plugin_url() instead.
29
  define( 'FLAMINGO_PLUGIN_URL',
30
- untrailingslashit( plugins_url( '', FLAMINGO_PLUGIN ) ) );
 
31
 
32
  require_once FLAMINGO_PLUGIN_DIR . '/includes/functions.php';
33
  require_once FLAMINGO_PLUGIN_DIR . '/includes/formatting.php';
5
  Author: Takayuki Miyoshi
6
  Text Domain: flamingo
7
  Domain Path: /languages/
8
+ Version: 2.2.2
9
  */
10
 
11
+ define( 'FLAMINGO_VERSION', '2.2.2' );
12
 
13
  define( 'FLAMINGO_PLUGIN', __FILE__ );
14
 
15
  define( 'FLAMINGO_PLUGIN_BASENAME',
16
+ plugin_basename( FLAMINGO_PLUGIN )
17
+ );
18
 
19
  define( 'FLAMINGO_PLUGIN_NAME',
20
+ trim( dirname( FLAMINGO_PLUGIN_BASENAME ), '/' )
21
+ );
22
 
23
  define( 'FLAMINGO_PLUGIN_DIR',
24
+ untrailingslashit( dirname( FLAMINGO_PLUGIN ) )
25
+ );
26
 
27
  if ( ! defined( 'FLAMINGO_MOVE_TRASH_DAYS' ) ) {
28
  define( 'FLAMINGO_MOVE_TRASH_DAYS', 30 );
30
 
31
  // Deprecated, not used in the plugin core. Use flamingo_plugin_url() instead.
32
  define( 'FLAMINGO_PLUGIN_URL',
33
+ untrailingslashit( plugins_url( '', FLAMINGO_PLUGIN ) )
34
+ );
35
 
36
  require_once FLAMINGO_PLUGIN_DIR . '/includes/functions.php';
37
  require_once FLAMINGO_PLUGIN_DIR . '/includes/formatting.php';
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: takayukister, megumithemes, itpixelz
3
  Tags: bird, contact, mail, crm
4
  Requires at least: 5.4
5
- Tested up to: 5.6
6
- Stable tag: 2.2.1
7
  License: GPLv2 or later
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -32,6 +32,10 @@ This plugin stores submission data collected through contact forms, which may in
32
 
33
  == Changelog ==
34
 
 
 
 
 
35
  = 2.2.1 =
36
 
37
  * Outputs a local date/time in a CSV export file.
2
  Contributors: takayukister, megumithemes, itpixelz
3
  Tags: bird, contact, mail, crm
4
  Requires at least: 5.4
5
+ Tested up to: 5.8
6
+ Stable tag: 2.2.2
7
  License: GPLv2 or later
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
 
32
 
33
  == Changelog ==
34
 
35
+ = 2.2.2 =
36
+
37
+ * Address Book: Hides the Filter button if there is no working filter.
38
+
39
  = 2.2.1 =
40
 
41
  * Outputs a local date/time in a CSV export file.