Automattic / Automattic/babble

bbl_is_page should accept an array of page IDs or page slugs as is_page does

Open
#358 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
250
Forks
44
PR merge metrics
No merged PRs in 30d

Description

It currently accepts only single values. See the implementation of WP_Query::is_page for more details https://developer.wordpress.org/reference/classes/wp_query/is_page/

Contributor guide

Open the contributing guide

Research direction

Start by comparing bbl_is_page with the linked WP_Query::is_page implementation and identify the existing entry point for the helper. The work is complete when bbl_is_page accepts arrays of page IDs or page slugs in the same way as is_page, while retaining support for single values.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.