Changeset 1245749
- Timestamp:
- 09/15/2015 09:20:05 AM (11 years ago)
- Location:
- media-search-enhanced
- Files:
-
- 6 edited
- 1 copied
-
tags/0.7.1 (copied) (copied from media-search-enhanced/trunk)
-
tags/0.7.1/README.txt (modified) (2 diffs)
-
tags/0.7.1/media-search-enhanced.php (modified) (1 diff)
-
tags/0.7.1/public/class-media-search-enhanced.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/media-search-enhanced.php (modified) (1 diff)
-
trunk/public/class-media-search-enhanced.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
media-search-enhanced/tags/0.7.1/README.txt
r1245205 r1245749 6 6 Requires at least: 3.5 7 7 Tested up to: 4.3 8 Stable tag: 0.7. 08 Stable tag: 0.7.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 == Changelog == 67 67 68 = 0.7.1 = 69 * Bug fix: Remove duplicate search results when WPML plugin is activated, THE RIGHT WAY. 70 68 71 = 0.7.0 = 69 72 * Remove duplicate search results when WPML plugin is activated. Props [@joseluiscruz](https://wordpress.org/support/topic/minor-conflict-with-wpml-media-plugin). -
media-search-enhanced/tags/0.7.1/media-search-enhanced.php
r1245205 r1245749 15 15 * Plugin URI: http://1fix.io/media-search-enhanced 16 16 * Description: Search through all fields in Media Library. 17 * Version: 0.7. 017 * Version: 0.7.1 18 18 * Author: 1fixdotio 19 19 * Author URI: http://1fix.io -
media-search-enhanced/tags/0.7.1/public/class-media-search-enhanced.php
r1245205 r1245749 29 29 * @var string 30 30 */ 31 const VERSION = '0.7. 0';31 const VERSION = '0.7.1'; 32 32 33 33 /** … … 142 142 // Rewrite the where clause 143 143 if ( ! empty( $vars['s'] ) && ( ( isset( $_REQUEST['action'] ) && 'query-attachments' == $_REQUEST['action'] ) || 'attachment' == $vars['post_type'] ) ) { 144 $pieces['where'] .= " AND $wpdb->posts.post_type = 'attachment' AND ($wpdb->posts.post_status = 'inherit' OR $wpdb->posts.post_status = 'private')"; 144 $pieces['where'] = " AND $wpdb->posts.post_type = 'attachment' AND ($wpdb->posts.post_status = 'inherit' OR $wpdb->posts.post_status = 'private')"; 145 146 if ( class_exists('WPML_Media') ) { 147 global $sitepress; 148 //get current language 149 $lang = $sitepress->get_current_language(); 150 $pieces['where'] .= $wpdb->prepare( " AND t.element_type='post_attachment' AND t.language_code = %s ", $lang ); 151 } 145 152 146 153 if ( ! empty( $vars['post_parent'] ) ) { -
media-search-enhanced/trunk/README.txt
r1245205 r1245749 6 6 Requires at least: 3.5 7 7 Tested up to: 4.3 8 Stable tag: 0.7. 08 Stable tag: 0.7.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 == Changelog == 67 67 68 = 0.7.1 = 69 * Bug fix: Remove duplicate search results when WPML plugin is activated, THE RIGHT WAY. 70 68 71 = 0.7.0 = 69 72 * Remove duplicate search results when WPML plugin is activated. Props [@joseluiscruz](https://wordpress.org/support/topic/minor-conflict-with-wpml-media-plugin). -
media-search-enhanced/trunk/media-search-enhanced.php
r1245205 r1245749 15 15 * Plugin URI: http://1fix.io/media-search-enhanced 16 16 * Description: Search through all fields in Media Library. 17 * Version: 0.7. 017 * Version: 0.7.1 18 18 * Author: 1fixdotio 19 19 * Author URI: http://1fix.io -
media-search-enhanced/trunk/public/class-media-search-enhanced.php
r1245205 r1245749 29 29 * @var string 30 30 */ 31 const VERSION = '0.7. 0';31 const VERSION = '0.7.1'; 32 32 33 33 /** … … 142 142 // Rewrite the where clause 143 143 if ( ! empty( $vars['s'] ) && ( ( isset( $_REQUEST['action'] ) && 'query-attachments' == $_REQUEST['action'] ) || 'attachment' == $vars['post_type'] ) ) { 144 $pieces['where'] .= " AND $wpdb->posts.post_type = 'attachment' AND ($wpdb->posts.post_status = 'inherit' OR $wpdb->posts.post_status = 'private')"; 144 $pieces['where'] = " AND $wpdb->posts.post_type = 'attachment' AND ($wpdb->posts.post_status = 'inherit' OR $wpdb->posts.post_status = 'private')"; 145 146 if ( class_exists('WPML_Media') ) { 147 global $sitepress; 148 //get current language 149 $lang = $sitepress->get_current_language(); 150 $pieces['where'] .= $wpdb->prepare( " AND t.element_type='post_attachment' AND t.language_code = %s ", $lang ); 151 } 145 152 146 153 if ( ! empty( $vars['post_parent'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.