Square Brackets Bei...
 
Notifications
Clear all

wpForo 1.x.x [Solved] Square Brackets Being Removed From Title

4 Posts
2 Users
1 Reactions
942 Views
Posts: 22
Topic starter
(@jdobbsy1987)
Eminent Member
Joined: 5 years ago

When we use square brackets in titles it is removed after clicking post.

 

i.e Title [Genera] This is a test post becomes This is a test post without the [General].

 

How can we make it remain? if we use HTML code such as

 

&#'91; test &#'93; without the ' 

 

This it shows but doing this is a pain

3 Replies
Sofy
Posts: 4406
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

Hi @jdobbsy1987,

I'll ask developers and let you know asap. 

Posts: 22
Topic starter
(@jdobbsy1987)
Eminent Member
Joined: 5 years ago

Thank you

1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 6 years ago

Support Team
Posts: 4406

@jdobbsy1987

This issue will be fixed in the next version release. If you need to fix it asap please follow the steps below:

1. Open the wp-content/plugins/wpforo/wpf-includes/functions.php file

2. Find this code and remove it:

$text = preg_replace('#\[[^\]]+\]#', '', $text);