Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#26921 closed defect (bug) (invalid)

Deprecated used function in WP 3.8

Reported by: peternwp's profile peternwp Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.8
Component: General Keywords:
Focuses: Cc:

Description

WP 3.8 gives the following Notice:-

"Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /home/plugtest/public_html/site/wp-includes/functions.php on line 2908"

So presumably; wpdb::escape() needs to be replaced in "wp_includes/functions.php".

Change History (2)

#1 @nacin
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi peternwp,

This is simply where the notice is being issued from. Line 2908 in wp-includes/functions.php is in the _deprecated_function() function. PHP doesn't let you point to a bad line when throwing a notice.

To track down where it's coming from, you could use a plugin like http://wordpress.org/plugins/log-deprecated-notices/.

This ticket was mentioned in IRC in #wordpress-dev by nacin. View the logs.


11 years ago

Note: See TracTickets for help on using tickets.