Coder Social home page Coder Social logo

Comments (5)

TobiasBg avatar TobiasBg commented on July 19, 2024

Hi @effetx,

this is a problem that came up with the recent WordPress 4.8.2 release. I'm already testing a solution and I will release a new version soon.

Regards,
Tobias

from tablepress.

TobiasBg avatar TobiasBg commented on July 19, 2024

Hi again,

if you want to test this, you can try this patch:

--- controllers/controller-frontend.php
+++ controllers/controller-frontend.php
@@ -875,6 +875,7 @@ JS;
 		// If $_GET['exact'] is set, WordPress doesn't use % in SQL LIKE clauses.
 		$exact = get_query_var( 'exact' );
 		$n = ( empty( $exact ) ) ? '%' : '';
+		$search_sql = $wpdb->remove_placeholder_escape( $search_sql );
 		foreach ( $query_result as $search_term => $table_ids ) {
 			$search_term = esc_sql( $wpdb->esc_like( $search_term ) );
 			$old_or = "OR ({$wpdb->posts}.post_content LIKE '{$n}{$search_term}{$n}')";
@@ -883,6 +884,7 @@ JS;
 			$new_or = $old_or . " OR ({$wpdb->posts}.post_content REGEXP '{$regexp}')";
 			$search_sql = str_replace( $old_or, $new_or, $search_sql );
 		}
+		$search_sql = $wpdb->add_placeholder_escape( $search_sql );

 		return $search_sql;
 	}
--

from tablepress.

effetx avatar effetx commented on July 19, 2024

Hi @TobiasBg ,
Thank you very much for the very quick answer (and sorry for my poor english). I immediately try your patch but unfortunately I don't see any change. I tried again to disable all plugin except TablePress but no result.

from tablepress.

TobiasBg avatar TobiasBg commented on July 19, 2024

Hi @effetx,

ah, that's strange. If possible, I'd like to take a direct look at this on your site. Could you therefore please get in touch via email (the address is in the main plugin file "tablepress.php")? That way, I can investigate this directly. Thanks!

Regards,
Tobias

from tablepress.

TobiasBg avatar TobiasBg commented on July 19, 2024

Hi,

we found that updating to WordPress 4.9 and using the patch fixed this :-)

Regards,
Tobias

from tablepress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.