Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Site name encoding in backend and frontend
#1
As user p91 noticed (see thread http://get-simple.info/forum/topic/4490/...side-name/ ), the site name isn't rendered the same way in frontend and admin panel.

If you enter a site name like GS λ, in the frontend it is displayed as:
Code:
GS λ
but in the backend (admin, login page...) as:
Code:
GS λ

That's because get_site_name (admin/inc/theme_functions.php) echoes it with:
Code:
trim(stripslashes($SITENAME))
However, in the admin panel (admin/template/include-nav.php) it is echoed with:
Code:
cl($SITENAME)

I think GS dev team should decide which method to use for both cases.

If you decide to allow html in the site name, then IMO there should be a get_clean_site_name tag (like get_page_title vs get_page_clean_title). If not, it would not be needed.
Reply


Messages In This Thread
Site name encoding in backend and frontend - by Carlos - 2012-10-06, 13:17:53



Users browsing this thread: 1 Guest(s)