New York Mayor Bill de Blasio and Police Commissioner William Bratton were saluted as they entered a funeral home for an officer’s wake.

The action by officers Saturday at the wake of Wenjian Liu was in contrast to the hundreds of police who turned their backs to video screens showing the mayor speaking at last week’s funeral of Liu’s police partner, Rafael Ramos.

The two were shot to death in their police cruiser two weeks ago by a gunman who later killed himself.

Liu’s funeral will be held Sunday.

The respect shown by officers Saturday came after Bratton told police that a ‘‘hero’s funeral is about grieving, not grievance.’’

Some officers had faulted de Blasio for sympathizing with police protesters.

More From WBSM-AM/AM 1420