mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
These functions import $wpdb but do not use it.
See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28539 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -518,8 +518,6 @@ function bulk_edit_posts( $post_data = null ) {
|
||||
* @return WP_Post Post object containing all the default post data as attributes
|
||||
*/
|
||||
function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) {
|
||||
global $wpdb;
|
||||
|
||||
$post_title = '';
|
||||
if ( !empty( $_REQUEST['post_title'] ) )
|
||||
$post_title = esc_html( wp_unslash( $_REQUEST['post_title'] ));
|
||||
@@ -733,7 +731,6 @@ function write_post() {
|
||||
* @return unknown
|
||||
*/
|
||||
function add_meta( $post_ID ) {
|
||||
global $wpdb;
|
||||
$post_ID = (int) $post_ID;
|
||||
|
||||
$metakeyselect = isset($_POST['metakeyselect']) ? wp_unslash( trim( $_POST['metakeyselect'] ) ) : '';
|
||||
|
||||
Reference in New Issue
Block a user