“Happy Endings” will move to Friday nights. (Richard Cartwright/ABC)

ABC is throwing in the towel on its Tuesday comedy block earlier than planned.

Instead of airing back-to-back “Happy Endings” episodes on that night until “Dancing With the Stars” returns March 19 (as originally announced), the network has decided to move the struggling comedy series.

“Happy Endings” will now do its back-to-back thing on Friday nights starting March 29, where the Tim Allen comedy “Last Man Standing” and Reba McIntire’s “Malibu Country” have been running. Both will have finished their season by then.

No, none of this is good news for “Happy Endings” fans.

The Friday play is ABC’s third better idea for the show this midseason. Remember the Sunday-night, paired-with-“Don’t Trust the B---- in Apartment 23” plan?

Meanwhile, ABC’s turning Tuesdays at 8 over to reality series.

The cooking competition series “The Taste” is taking over “Happy Endings’” time slot Feb. 26 — the same night that “Celebrity Wife Swap” returns to the night at 8.

And featured in “Celebrity Wife Swap’s” season debut: former Playboy Playmate Kendra Wilkinson and former TLC star Kate Gosselin — both alums of “Dancing With the Stars.”

In Thursday’s announcement, ABC made a point of saying that during the one-week “Celebrity” experiment, the two women will swap lifestyles, children and homes — but not bedrooms.