Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Old Version fixes and change logs (http://forum.bytesforall.com/forumdisplay.php?f=37)
-   -   BUGFIX 351/352-05: Page Title Does Not Display Hyphens, Commas, etc. (http://forum.bytesforall.com/showthread.php?t=8037)

juggledad Jul 9, 2010 01:11 PM

BUGFIX 351/352-05: Page Title Does Not Display Hyphens, Commas, etc.
 
1 Attachment(s)
DESCRIPTION: When you enter a special character in a page title and are using the 'Bytes For All SEO options' the special characracters will show up as their HTML equivalent: a hyphen will show as '–'

CAUSE: This issue occurs because both WordPress and Atahualpa are converting special characters in the title to the HTML equivalent.

FIX: edit bfa_meta_tags.php and find line 67-72 wich will be
HTML Code:

                if ( $bfa_meta_title != '' ) {
                        #$bfa_ata_page_title = $bfa_meta_title;
                        $bfa_ata_page_title = htmlentities($bfa_meta_title,ENT_QUOTES,'UTF-8');
                } else {
                        $bfa_ata_page_title = htmlentities(single_post_title('', false),ENT_QUOTES,'UTF-8');
                }

and change them to
HTML Code:

                if ( $bfa_meta_title != '' ) {
                        #$bfa_ata_page_title = $bfa_meta_title;
                        $bfa_ata_page_title = htmlentities($bfa_meta_title,ENT_QUOTES,'UTF-8');
                } else {
                        $bfa_ata_page_title = single_post_title('', false);
                }

or you can just download the attached zipped bfa_meta_tags.php that has the correction already applied.
Attachment 599


reported in http://forum.bytesforall.com/showthr...6522#post36522

aTart Aug 8, 2010 12:03 PM

Ah thanks!! I've been trying to wrap my head around this issue for MONTHS, just couldn't figure out how to even form the query to get an answer, let alone think about a solution! :)


All times are GMT -6. The time now is 06:10 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.