protected function preProcessPostName( $id ) {

		if ( in_array( $id, $this->reservedIds, true ) ) {
			$id = uniqid( "$id-" );
		}

		return \Pressbooks\Sanitize\sanitize_xml_id( $id );
	}
protected function preProcessPostName( $id ) {

		if ( in_array( $id, $this->reservedIds, true ) ) {
			$id = uniqid( "$id-" );
		}

		return \Pressbooks\Sanitize\sanitize_xml_id( $id );
	}
protected function preProcessPostName ( $ id ) { if ( in_array ( $ id , $ this -> reservedIds , true ) ) { $ id = uniqid ( "$id-" ) ; } return \ Pressbooks \ Sanitize \ sanitize_xml_id ( $ id ) ; }
Check a post_name against a list of reserved IDs, sanitize for use as an XML ID.

@param string $id

@return string
Check a post_name against a list of reserved IDs sanitize for use as an XML ID .