Automating version display in migration documentation

Updated DOC to reflect that [the migration plugin now supports WP 5.8.1]

1 Like

Thank you - but - we should not be manually updating anything in the documentation each time a new version is released or something is updated!

These manual steps have a way of accumulating over time, and it’s fairly easy to keep up with them 3 or 4 or 5 times but they always get out of date!

Always look for ways to do the work once and set up something that just keeps working later on, instead of requiring more steps every single time we do a release or an update.

I assume you are talking about Installing ClassicPress | ClassicPress Documentation here. In this case we have already solved that problem on the main site How to Install ClassicPress CMS | Download ClassicPress

The code for that shortcode is here: https://github.com/ClassicPress/site-www/blob/9de1031c7f61f07f420225a41741a54729785174/wp-content/mu-plugins/cp-migration-get-latest-ver.php

1 Like

Then let’s Add that shortcode that returns latest supported version in doc site as well
It’s the only way I know to make a plain text entry dynamic…

I’ll add it to the git repo as pr?

1 Like

We can skip a couple of steps there too. I can add the code now and you can update the doc content?

Done on my end: https://github.com/ClassicPress/site-docs/commit/176e02b098f9cf179b4a6cd9aef68aeea881d385

yeah sure, the shortcode is added:
[cp_migration_get_wp_ver]

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.