# ST2 Demo Theme Issue

**URL:** <https://forum.pinegrow.com/t/st2-demo-theme-issue/3829>\
**Category:** Bug Reports\
**Created:** [March 2, 2020, 8:07pm UTC](https://forum.pinegrow.com/t/st2-demo-theme-issue/3829 "2020-03-02T20:07:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KodMi](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@KodMi](https://forum.pinegrow.com/u/KodMi)\
**Post date:** [March 2, 2020, 8:07pm UTC](https://forum.pinegrow.com/t/st2-demo-theme-issue/3829/1 "2020-03-02T20:07:57Z")

</div>

Think is a possible already known bug, but on a fresh copy of the “ST2 Demo Theme” from github.

If you click “wordpress”-\>“regenerate function.php” it will add the code

```auto
function pgwp_sanitize_placeholder($input) { return $input; }
```

and removes code

```auto
require_once "inc/custom.php";
```

Which will break the theme causing a PHP wordpress error. Only until you manually edit out

```auto
function pgwp_sanitize_placeholder($input) { return $input; }
```

and add

```auto
require_once "inc/custom.php";
```

back to the function.php will it resolve the error.

If you just add the “inc/custom.php” it throws an error claiming function “pgwp\_sanitize\_placeholder” is already declared in one of the files called by “custom.php”.
