Skip to content

Commit c9e123e

Browse files
committed
Fix code example and add missing periods in titles
1 parent 753f914 commit c9e123e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WordPress/Docs/DB/RestrictedFunctionsStandard.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
3535
global $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,

0 commit comments

Comments
 (0)