<Li> 1891 Flag with 44 stars (Wyoming) </Li> <Li> 1892 "Pledge of Allegiance" first published in a magazine called "The Youth's Companion", written by Francis Bellamy . Revised in 1954 . </Li> <Li> 1896 Flag with 45 stars (Utah) </Li> <Li> 1897 Adoption of State Flag Desecration Statutes--By the late 1800s an organized flag protection movement was born in reaction to perceived commercial and political misuse of the flag . After supporters failed to obtain federal legislation, Illinois, Pennsylvania, and South Dakota became the first States to adopt flag desecration statutes . By 1932, all of the States had adopted flag desecration laws . In general, these State laws outlawed: (i) placing any kind of marking on the flag, whether for commercial, political, or other purposes; (ii) using the flag in any form of advertising; and (iii) publicly mutilating, trampling, defacing, defiling, defying or casting contempt, either by words or by act, upon the flag . Under the model flag desecration law, the term "flag" was defined to include any flag, standard, ensign, or color, or any representation of such made of any substance whatsoever and of any size that evidently purported to be said flag or a picture or representation thereof, upon which shall be shown the colors, the stars and stripes in any number, or by which the person seeing the same without deliberation may believe the same to represent the flag of the U.S. </Li>

When did the us flag have 45 stars