This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This function updates users that are using 2.x versions to | |
* the 3.x versions. | |
* | |
* 1. The four project meta labels were removed and replaced with | |
* a single field that allows creating arbitrary labels. | |
* If user's post contains the old labels and the new custom field | |
* "daisho_project_meta" is empty, move the labels to this new field. | |
* This is run on every front-end and back-end post opening. |