/** * Save a posted post or page location. * * @since 1.3 * @uses parent::save_posted_object_location() * * @param id $post_id * @return bool|WP_Error */ public function save_posted_object_location($post_id) { return parent::save_posted_object_location('post', $post_id); }
/** * Handle old non-strict method calls with only one argument. * * @param string $object_name * @param null|int $object_id * @return bool|WP_Error */ public function save_posted_object_location($object_name, $object_id = null) { // resolve old non-strict one argument calls if (is_null($object_id)) { $object_id = intval($object_name); } // We only know how to save posts $object_name = 'post'; return parent::save_posted_object_location($object_name, $object_id); }