It has come to my attention that my plugin was generating a PHP warning “Warning: Missing argument 2 for flh_wpcomgms_search_map_code()”
Although it doesn’t hurt anything, the warning is ugly.
Reading the documentation of the wp_insert_post_data filter more closely revealed the problem.
You must pass 2 for the $accepted_args variable in add_filter() if you want to access $postarr.
So I did that, and the warning went away.
However, when updating the plugin, I ran into a problem. The correct version was made available, but the text on the download button still referred to the old version number. I emailed plugins support, and discovered that I had forgotten to change the version number in the PHP file itself. I had only changed the ‘Stable Tag’ field in the readme.txt file.
So remember, when updating a plugin, it’s necessary to change both the ‘Stable Tag’ in the readme.txt file as well as the version number in the PHP file header.