Repository navigation
The data of the plugin take Paginova names, at the request of the WordPress.org plugin review team (the mpp prefix inherited from Multipage is too short). Content needs no change; the settings are moved and the chapter index is rebuilt in the background.
Changed
- The options are renamed from
mpp-*/_mpp-*topchap-*: the 12 settings (pchap-toc-position...), the database versionpchap-db-version(db version 2300) and the rebuild statepchap-postmeta-built,pchap-rebuild-state,pchap-rebuild-last,pchap-rebuild-lock.pchap_migrate_legacy_options()moves them while Paginova loads, as long as no Paginova database version is stored, so the settings are in place before anything reads them (the update routines only run onadmin_init); a value already stored under a new name is kept, the old options are deleted - The chapter index meta is renamed from
_mpp_datato_pchap_data: the 2.3 update routine deletes_mpp_dataand rebuilds the index in the background. Code reading the old names directly must use the new ones (or the option getters) [nextpage]is no longer registered as a shortcode: it is a content format, read by the parser like the<!--nextpage-->break of core. Where the content is not split,PChap_Shortcodes::remove_markers()removes the markers onthe_content(priority 8, beforewpautopanddo_shortcode) and on the rendering of a Chapter block, and thestrip_shortcodes_tagnamesfilter letsstrip_shortcodes()remove them from excerpts.PChap_Shortcodes::nextpage()is deprecated- The admin action, query arguments, settings error codes and HTML ids of the settings screens use the
pchapprefix (admin-post.php?action=pchap_rebuild_postmeta,pchap-rebuild...); the.mpp-*CSS classes of the frontend are unchanged - The "Page %s" string of WordPress core, removed from the titles printed by SEO plugins, is read from the core translations (
get_translations_for_domain( 'default' )) instead of a__()call with thedefaulttext domain - Uninstalling Paginova removes its own data only: the
mpp-*options,_mpp_datameta, legacymultipageoption andmpp_rebuild_postmeta_batchevent of Multipage and Post Chapters are left to these plugins
Fixed
- The Rebuild chapter index button did nothing since 2.0.0: the form posted the
pchap_rebuild_postmetaaction, while the handler was still hooked toadmin_post_mpp_rebuild_postmeta