Conversation
|
Video files in |
|
I suppose the Stories project management guidelines can also be removed? |
|
@pierlon Unless you all are using those? No idea 🤷♂ |
|
Starting to look really good! No just need to address the todos. 28k deleted lines of code already, crazy! |
|
@westonruter would you consider keeping the Stories deprecation admin pointer? The notice on the AMP options page will still be present. |
|
Also, how much of an impact will removing the 'Experiences' option create? I know that its used in the |
| 'theme_support' => AMP_Theme_Support::READER_MODE_SLUG, | ||
| 'supported_post_types' => [ 'post' ], | ||
| 'analytics' => [], | ||
| 'all_templates_supported' => true, | ||
| 'supported_templates' => [ 'is_singular' ], | ||
| 'enable_response_caching' => true, | ||
| 'version' => AMP__VERSION, | ||
| 'story_templates_version' => false, |
There was a problem hiding this comment.
Removed Story relation settings; see ceab012.
There was a problem hiding this comment.
Shouldn't that be a database upgrade routine instead?
This right now causes database queries on every page load.
| @@ -473,7 +297,7 @@ public function render_supported_templates() { | |||
| $checked = ( | |||
| post_type_supports( $post_type->name, AMP_Post_Type_Support::SLUG ) | |||
| || | |||
| ( ! AMP_Options_Manager::is_website_experience_enabled() && in_array( $post_type->name, $supported_post_types, true ) ) | |||
There was a problem hiding this comment.
With this change, the post post type will be enabled by default in the supported post types.
|
Also the welcome notice may need to be reworded; it currently states:
With the Stories experience now being removed, that technically isn't true anymore. |
| 'value' => AMP_Theme_Support::get_support_mode(), | ||
| 'private' => false, | ||
| ], | ||
| 'amp_experiences_enabled' => [ |
There was a problem hiding this comment.
Site Health no longer shows the enabled experiences (since Website will be the only one).
| } | ||
| $content .= sprintf( '; mode=%s', $mode ); | ||
|
|
||
| $content .= sprintf( '; experiences=%s', implode( ',', AMP_Options_Manager::get_option( 'experiences' ) ) ); |
There was a problem hiding this comment.
experiences property is no longer shown in the meta generator tag.
| add_action( 'parse_query', 'amp_correct_query_when_is_front_page' ); | ||
| add_action( 'admin_bar_menu', 'amp_add_admin_bar_view_link', 100 ); | ||
| add_action( 'wp_loaded', 'amp_editor_core_blocks' ); | ||
| add_action( 'amp_plugin_update', 'remove_amp_story_templates' ); |
There was a problem hiding this comment.
Story related templates will be removed after a plugin update; see d67421e.
| @@ -145,7 +118,7 @@ | |||
| "lint:pkg-json": "wp-scripts lint-pkg-json --ignorePath .gitignore", | |||
| "start": "wp-scripts start", | |||
| "test": "npm-run-all --parallel test:*", | |||
| "test:e2e": "cross-env WP_BASE_URL=http://localhost:8890 node ./bin/local-env/run-e2e-tests.js --config=tests/e2e/jest.config.js", | |||
| "test:e2e": "cross-env WP_BASE_URL=http://localhost:8890 wp-scripts test-e2e --config=tests/e2e/jest.config.js", | |||
There was a problem hiding this comment.
Good idea to use wp-scripts
|
@pierlon Ready for merge conflicts to be resolved for merge. @swissspidy Please approve the PR when you are satisfied. |
…tories-removal # Conflicts: # includes/class-amp-theme-support.php # package-lock.json # package.json
…tories-removal # Conflicts: # tests/php/test-class-site-health.php
|
@swissspidy or @pierlon would you resolve the package conflicts? |
…tories-removal # Conflicts: # package-lock.json # package.json
|
I can get this resolved 👷♂️ . |
Summary
This PR removes the Stories codebase.
Fixes #4203.
Todo
Checklist