Use get_pages() before another plugin modifies it

Use get_pages() before another plugin modifies it