File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ $results = <em>mysqli_query</em>(
2424 </code >
2525 </code_comparison >
2626 <code_comparison >
27- <code title =" Valid: Using WordPress functions to insert a post" >
27+ <code title =" Valid: Using WordPress functions to insert a post. " >
2828 <![CDATA[
2929<em>wp_insert_post</em>(
3030 array( 'post_title' => 'Title' )
@@ -34,13 +34,13 @@ $results = <em>mysqli_query</em>(
3434
3535global $wpdb;
3636<em>$wpdb->insert</em>(
37- "{ $wpdb->prefix}_posts" ,
37+ $wpdb->posts ,
3838 array( 'post_title' => 'Title' ),
3939 array( '%s' )
4040);
4141 ]]>
4242 </code >
43- <code title =" Invalid: Using MySQLi library to insert a post" >
43+ <code title =" Invalid: Using MySQLi library to insert a post. " >
4444 <![CDATA[
4545<em>mysqli_query</em>(
4646 $mysql,
You can’t perform that action at this time.
0 commit comments