Always use mysql_real_escape_string(), even when DB_CHARSET is not properly set. fixes #24773.



git-svn-id: http://core.svn.wordpress.org/trunk@24712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Use wp_slash() in places where we improperly used the DB API instead. see #21767.



git-svn-id: http://core.svn.wordpress.org/trunk@24713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Use sanitize_key() instead of esc_sql() when 'escaping' variable DB field names. see #21767.



git-svn-id: http://core.svn.wordpress.org/trunk@24714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
More clear and concise escaping in get_page_by_path(). see #21767.



git-svn-id: http://core.svn.wordpress.org/trunk@24715 1a063a9b-81f0-0310-95a4-ce76da25c4cd