Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: theme shortcodes are not parsed in meta description field #5548

@Jimmi08

Description

@Jimmi08

What e107 version are you using?

Latest Github version (just updated)

Bug description

You can use the theme shortcode in the page description. If you use the same content for meta description field, it is not parsed and shortcode is displayed in source code.

How to reproduce

  1. go to theme_shortcodes.php and add test shortcode
	function sc_test()
	{
		return "TEST";
	}
  1. use them in page fields (f.e. description and meta description)
  2. check result

Expected behavior

parsing content before make it safe for meta fields

Image Image

What browser(s) are you seeing the problem on?

Chrome / Brave

PHP Version

8.2

EDIT:
Title should be parsed too, you want to use {SITENAME} or something like that in meta title. Now neither global shortcodes are parsed in meta fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA problem that should not be happening

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions