if ( $post_name_check || in_array($slug, $feeds) ) {
            $suffix = 2;
            do {
                $alt_post_name = substr($slug, 0, 200-(strlen($suffix)+1)). "-$suffix";
                $post_name_check = $wpdb->get_var($wpdb->prepare($check_sql, $alt_post_name, $post_ID, $post_parent));