Find and clean orphaned references in each of FieldtypePage's tables
Previous versions of PW had an issue where a reference to a deleted page could still exist in some instances. This could cause "reference.count>0" type selectors to produce inaccurate results. This cleans up for that. This may also be handy if a Page reference table has become corrupted by some other means.
Usage
$fieldtypePage->cleanOrphanedReferences();
FieldtypePage methods and properties
API reference based on ProcessWire core version 3.0.236