Error in using wpdb->prepare during filter WP 4.0
-
Error: The query argument of wpdb::prepare() must have a placeholder. This is new feature of WP.
1. WP_DEBUG must be True
2. Create CPT-onomy
3. Go to post listing, and filter the list by one cpt-onomy.Fix:
all prepares *without arguments*, e.g.
get_row( get_prepare ( QUERY, ) )
must be replaced withget_row( QUERY )
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Error in using wpdb->prepare during filter WP 4.0’ is closed to new replies.