Skip to content

Commit 63ff8ec

Browse files
rodrigoprimojrfnl
andcommitted
Apply suggestions from code review
Co-authored-by: Juliette <663378+jrfnl@users.noreply.github.com>
1 parent 585ebfc commit 63ff8ec

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

WordPress/Docs/DB/SlowDBQueryStandard.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111
<code_comparison>
1212
<code title="Valid: No potentially slow query keys.">
1313
<![CDATA[
14-
$args = array(
14+
$query = new WP_Query( array(
1515
'post_type' => 'post',
16-
);
16+
) );
1717
1818
1919
$query = 'post_type=post&orderby=date';
2020
]]>
2121
</code>
2222
<code title="Invalid: Using potentially slow query keys.">
2323
<![CDATA[
24-
$args = array(
24+
$query = new WP_Query( array(
2525
'<em>meta_key</em>' => 'color',
2626
'<em>meta_value</em>' => 'blue',
27-
);
27+
) );
2828
2929
$query = 'post_type=post&<em>meta_key</em>=featured';
3030
]]>

0 commit comments

Comments
 (0)