fix Issue 11689 - deprecated local function does not work
Merge pull request #2926 from 9rnsr/fix11689

Issue 11689 - deprecated local function does not work