Ensures a string is a valid SQL 'order by' clause.
Description
Accepts one or more columns, with or without a sort order (ASC / DESC).e.g. 'column_1', 'column_1, column_2', 'column_1 ASC, column_2 DESC' etc. Also accepts 'RAND()'.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/formatting.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.