McDonald’s Corp. is putting the somewhat-stocky green star of “Shrek” movies on a diet in a new campaign that features the restaurant chain’s apple slices and salads rather than its burgers and fries.