Skip to content

Make page()->child() take an int to conform with the docs.#296

Open
JanRomero wants to merge 1 commit intoprocesswire:devfrom
JanRomero:Fix-children()-and-child()
Open

Make page()->child() take an int to conform with the docs.#296
JanRomero wants to merge 1 commit intoprocesswire:devfrom
JanRomero:Fix-children()-and-child()

Conversation

@JanRomero
Copy link
Copy Markdown
Contributor

The docs in PageTraversal::child() never said it could take an int, but the accessible ones on Page::child() did, so I made those come true.

Also added array as an argument type to the docs for Page::children() because that’s already possible.

Cheersestens 🤝

… for page()->children(): it can take an array selector.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant