mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Docs: Upgrade more parameters in docblocks to used typed array notation.
See #51800, #41756 git-svn-id: https://develop.svn.wordpress.org/trunk@49693 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -451,8 +451,8 @@ function has_excerpt( $post = 0 ) {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string|array $class One or more classes to add to the class list.
|
||||
* @param int|WP_Post $post_id Optional. Post ID or post object. Defaults to the global `$post`.
|
||||
* @param string|string[] $class One or more classes to add to the class list.
|
||||
* @param int|WP_Post $post_id Optional. Post ID or post object. Defaults to the global `$post`.
|
||||
*/
|
||||
function post_class( $class = '', $post_id = null ) {
|
||||
// Separates classes with a single space, collates classes for post DIV.
|
||||
@@ -1749,7 +1749,7 @@ function get_the_password_form( $post = 0 ) {
|
||||
* @since 4.2.0 The `$template` parameter was changed to also accept an array of page templates.
|
||||
* @since 4.7.0 Now works with any post type, not just pages.
|
||||
*
|
||||
* @param string|array $template The specific template filename or array of templates to match.
|
||||
* @param string|string[] $template The specific template filename or array of templates to match.
|
||||
* @return bool True on success, false on failure.
|
||||
*/
|
||||
function is_page_template( $template = '' ) {
|
||||
|
||||
Reference in New Issue
Block a user