Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#26921 closed defect (bug) (invalid)

Deprecated used function in WP 3.8

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

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
13 years ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → 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.


13 years ago

Note: See TracTickets for help on using tickets.