Automattic / Automattic/jetpack

Widget Visibility: improve compatibility with bbPress' Forums root

Open
#315 3 comments 0 reactions 0 assignees View on GitHub
[Feature] Widget Visibility Enhancement Good For Community
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

Steps to reproduce:
1. Activate Jetpack and the Widget Visibility module
2. Install and activate bbPress
3. Create a new static page named "forumpage"
4. Set that page as Forums root under Settings > Forums
5. Go to Appearance > Widgets, and open the visibility options for one of your widgets:
- Option 1: display widget when page = "Forums" post type => doesn't work.
![Alt text](http://f.cl.ly/items/2h0w3i163x3G240H132K/Screen%20Shot%202013-11-20%20at%204.27.22%20PM.png)
- Option 2: display widget when page = forumpage => doesn't work
![Alt text](http://f.cl.ly/items/2h0w3i163x3G240H132K/Screen%20Shot%202013-11-20%20at%204.27.22%20PM.png)

It's currently not possible to apply any Widget conditions to that particular page.

We should see about adding extra rules using [bbPress' conditional tags](http://bbpress.trac.wordpress.org/browser/trunk/includes/common/template-tags.php?rev=4919#L1012) when bbPress is active.

Reported here: [#2474-bbpress](http://bbpress.trac.wordpress.org/ticket/2474) and [#2050-jetpack](https://plugins.trac.wordpress.org/ticket/2050)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with Jetpack's Widget Visibility module and an active bbPress Forums root, then inspect the linked bbPress conditional tags. Done means widget visibility conditions can target the Forums root and its associated static page when bbPress is active, with the reported steps no longer failing.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.