public function update_rating( $post_id, $post, $update ) {

		App::setCurrentID( 'EFG' );

		if ( App::main()->is_after_update_post( $post, $update ) ) {
			if ( isset( $_POST['efg-update-rating'] ) ) {
				for ( $i = 1; $i <= 10; $i++ ) {
					if ( ! isset( $_POST[ "efg-rating-$i" ] ) ) {
						return false;
					}
					$votes[ "$i" ] = (int) $_POST[ "efg-rating-$i" ];
				}
				$this->set_rating_and_votes( $post_id, $votes );
			}
		}

		return true;
	}