two tiny patches to eliminate warnings
-
Hey, anybody still using this, enjoy two patches, first eliminates a recurring php warning in your logs, the second lets you make your SQL installation be configured more safely without throwing errors.
—– in jpconfig.php:
—– in jp_post_advanced(), initialise $error:function jp_post_advanced() { global $wpdb; // NEW 2016/07/20 - Creates the variable which is not tested correctly later without init. $error='';
—– in jp_functions.php:
—– in jp_format_post(), comment out line 544 (included below), add replacement line:// $parr = array( 'jpic' => mysql_real_escape_string( htmlentities( $pic, ENT_COMPAT, 'UTF-8' ) ) ); $parr = array( 'jpic' => $wpdb->escape( htmlentities( $pic, ENT_COMPAT, 'UTF-8' ) ) );
- The topic ‘two tiny patches to eliminate warnings’ is closed to new replies.