WordPress.org

Support

Support » Plugins and Hacks » [Bug reports]Problem was found in the plugin

[Bug reports]Problem was found in the plugin

Viewing 1 replies (of 1 total)
  • fix from 2.
    test and work taxonomy=term,term&taxonomy=term+term+etc..

    # This patch file was generated by NetBeans IDE
    # It uses platform neutral UTF-8 encoding and \n newlines.
    --- <html>core.php (<b>b1f20a4</b>)</html>
    +++ <html><b>Current File</b></html>
    @@ -145,7 +145,7 @@
     		if ( empty( $value ) )
     			unset( $query[ $taxonomy ] );
     		else
    -			$query[ $taxonomy ] = trim( implode( '+', $value ), '+' );
    +			$query[ $taxonomy ] = trim( implode( ',', $value ), ',' );
    
     		return self::get( $query );
     	}
    @@ -181,7 +181,7 @@
     		$title = array();
    
     		foreach ( qmt_get_query() as $tax => $value ) {
    -			$terms = preg_split( '/[+,]+/', $value );
    +			$terms = preg_split( '/[+,],/', $value );
    
     			$out = array();
     			foreach ( $terms as $slug ) {
    @@ -197,7 +197,7 @@
     			else
     				$key = $tax_obj->labels->name;
    
    -			$title[] .= $key . ': ' . implode( ' + ', $out );
    +			$title[] .= $key . ': ' . implode( ' , ', $out );
     		}
    
     		return implode( '; ', $title );
    @@ -244,7 +244,7 @@
     		}
    
     		foreach ( $qmt_query as &$value )
    -			$value = implode( '+', $value );
    +			$value = implode( ',', $value );
     	}
    
     	if ( $taxname ) {
    # This patch file was generated by NetBeans IDE
    # It uses platform neutral UTF-8 encoding and \n newlines.
    --- <html>walkers.php (<b>b1cfeaa</b>)</html>
    +++ <html><b>Current File</b></html>
    @@ -40,7 +40,7 @@
    
             // considering previous choices
             foreach ( $old_query as $old_taxonomy => $old_terms ) {
    -            $terms = explode( '+', $old_terms );
    +            $terms = explode( ',', $old_terms );
    
                 if ( !isset( $count_filter[$old_taxonomy] ) ) {
                     $count_filter[$old_taxonomy] = $terms;
    @@ -82,7 +82,7 @@
     	}
    
     	protected function set_selected_terms() {
    -		$this->selected_terms = explode( '+', qmt_get_query( $this->taxonomy ) );
    +		$this->selected_terms = explode( ',', qmt_get_query( $this->taxonomy ) );
     	}
    
     	// Make start_el() and end_el()

Viewing 1 replies (of 1 total)
  • The topic ‘[Bug reports]Problem was found in the plugin’ is closed to new replies.