Revert "Update functions.php"

This reverts commit 52179a8fdb9acb3e89b1fe36f64682e15a9a99e0.
changed function
Merge pull request #3 from dilumdarshana/amends1

Amends1