Notifications
Clear all

bug in the wpforotpx.php

3 Posts
2 Users
2 Reactions
1,040 Views
Posts: 76
Customer
Topic starter
(@tutrix)
Member
Joined: 5 years ago

there is an bug in the wpforotpx.php at line 900 and 902

 if( ( !$view && $prefixid ) || ( $view === 'prefix' && $prefixid ) ){
	 $page_title = wpforo_phrase('Topic Prefix', false) . '<sep> &nbsp/&nbsp </sep>' . $this->prefix( $prefixid ) . $remove_filter;
 } elseif( $view != 'prefix' && isset($args['prefixid']) ){
	 $page_title = $page_title . '<sep> &nbsp/&nbsp </sep>' . $this->prefix( $prefixid ) . $remove_filter;

<sep> &nbsp/&nbsp </sep>

should be

<sep> &nbsp;/&nbsp; </sep>

2 Replies
Posts: 4214
 Tom
Admin
(@tomson)
Famed Member
Joined: 10 years ago

Hi @tutrix,

Thank you for letting us know, we'll fix this in the next version.

Reply
Posts: 76
Customer
Topic starter
(@tutrix)
Member
Joined: 5 years ago

the bug is also present in the new version

		public function display_recent_page_head( $page_title, $args = array(), $view = '' ) {
			$prefixid = (int) wpfval($args, 'prefixid');
			$base_url = wpforo_home_url(wpforo_get_template_slug('recent')) . '?view=' . $view;
			$remove_filter = '<a href="' . esc_url($base_url) . '" class="wpf-remove-tpx-filter" title="' . wpforo_phrase('Remove filter by topic prefix', false) . '"><i class="fas fa-times"></i></a>';
			if( ( !$view && $prefixid ) || ( $view === 'prefix' && $prefixid ) ){
				$page_title = wpforo_phrase('Topic Prefix', false) . '<sep> &nbsp/&nbsp </sep>' . $this->prefix( $prefixid ) . $remove_filter;
			} elseif( $view != 'prefix' && isset($args['prefixid']) ){
				$page_title = $page_title . '<sep> &nbsp/&nbsp </sep>' . $this->prefix( $prefixid ) . $remove_filter;
			}
			return $page_title;
		}
Reply
Share:
Scroll to top