add static function WPage::AddCategory() (v 1.5.2)

Change-Id: I8cf0f860aad9c85e5a98f5f67807f6d0ba41f51c
(cherry picked from commit b10b30e5015d03b087dbcf1af3f8e69ca45c40c8)