Changeset 6500 for sites/trunk/wordpress.org/public_html/wp-content/plugins/glotpress-translate-bridge/glotpress-translate-bridge.php
- Timestamp:
- 02/01/2018 07:03:07 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/glotpress-translate-bridge/glotpress-translate-bridge.php
r2305 r6500 127 127 $sql_singular = isset( $strings['singular'] ) ? $wpdb->prepare( "o.singular = %s", $strings['singular'] ) : 'o.singular IS NULL'; 128 128 $sql_plural = isset( $strings['plural'] ) ? $wpdb->prepare( "o.plural = %s", $strings['plural'] ) : 'o.plural IS NULL'; 129 $sql_context = isset( $strings['context'] ) ? $wpdb->prepare( "o.contxt = %s",$strings['context'] ) : 'o.context IS NULL';129 $sql_context = !empty( $strings['context'] ) ? $wpdb->prepare( "o.context = %s", $strings['context'] ) : 'o.context IS NULL'; 130 130 131 131 $sql_locale = $wpdb->prepare( "s.locale = %s AND s.slug = %s", $locale['locale'], $locale['slug'] ); … … 148 148 ); 149 149 150 if ( ! $translation ) { 151 $decoded_strings = array_map( 'html_entity_decode', $strings ); 152 if ( $decoded_strings != $strings ) { 153 $translation = $this->find_translation( $decoded_strings, $project_path ); 154 } 155 } 156 150 157 if ( $translation ) { 151 158 $translation = array_filter( $translation );
Note: See TracChangeset
for help on using the changeset viewer.