Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1235 from Automattic/add/supportable-templates
Add support for allowing a site subset to be native AMP Squashed commit of the following: commit b54fcc0 Author: Weston Ruter <[email protected]> Date: Mon Jul 2 12:32:53 2018 -0700 Fix initialization of paried mode and Customizer, and fix support options on admin screen commit 7091b35 Author: Weston Ruter <[email protected]> Date: Mon Jul 2 11:44:37 2018 -0700 Fix generation of AMP permalink for attachments commit acf9849 Author: Weston Ruter <[email protected]> Date: Mon Jul 2 11:31:22 2018 -0700 Restore available_callback but mark as deprecated Use _doing_it_wrong() instead of trigger_error() commit 38b5546 Author: Weston Ruter <[email protected]> Date: Mon Jul 2 00:47:50 2018 -0700 Add test for custom template commit c172763 Author: Weston Ruter <[email protected]> Date: Mon Jul 2 00:16:57 2018 -0700 Add test for AMP_Theme_Support::get_template_availability() commit 4bde27d Author: Weston Ruter <[email protected]> Date: Sun Jul 1 22:44:10 2018 -0700 Add tests for AMP_Theme_Support::get_supportable_templates() commit 11ea3d1 Author: Weston Ruter <[email protected]> Date: Sun Jul 1 21:48:34 2018 -0700 Remove unused variable and fix phpcs issue commit 1bc4251 Author: Weston Ruter <[email protected]> Date: Sun Jul 1 21:42:32 2018 -0700 Restore the availability of AMP components in non-AMP documents in native sites Revert "Remove dirty AMP support; rename Disabled to Classic" This reverts most of commit 5bae33e. commit c32d76b Author: Weston Ruter <[email protected]> Date: Sun Jul 1 21:03:53 2018 -0700 Elimiante Other/unrecognized template option since indistinguishable from is_home * Devs should use filter to add support for custom templates * When a custom template is added via amp_supportable_templates filter then is_home will be discarded if there is another match commit 3d07eac Author: Weston Ruter <[email protected]> Date: Sun Jul 1 20:49:53 2018 -0700 Discard matching is_home when there are other matching templates commit 221c3f0 Author: Weston Ruter <[email protected]> Date: Sun Jul 1 20:22:08 2018 -0700 Improve testing of finish_init; add test stubs * Clean up covers tags * Remove unnecessary is_template_support_required commit 1c759e5 Author: Weston Ruter <[email protected]> Date: Sun Jul 1 15:46:12 2018 -0700 Add tests for read_theme_support, is_support_added_via_option, get_theme_support_args Store version with options to keep track of format commit 2062816 Author: Weston Ruter <[email protected]> Date: Sun Jul 1 09:21:46 2018 -0700 Persist user selection even when checkbox disabled * De-duplicate logic commit bfb202a Author: Weston Ruter <[email protected]> Date: Sat Jun 30 23:10:36 2018 -0700 Let theme support args define templates_supported * Make sure admin screen shows proper options when optional amp theme support has been disabled. * Add get_theme_support_args method. commit 7e56c8b Author: Weston Ruter <[email protected]> Date: Sat Jun 30 21:04:35 2018 -0700 Add unrecognized_templates_supported for Other templates [ci skip] commit 95fd958 Author: Weston Ruter <[email protected]> Date: Sat Jun 30 20:52:08 2018 -0700 Let template_availability return supported when no templates match but all supported * Fix remaining unit tests * Mock external HTTP requests [ci skip] commit fafb94e Author: Weston Ruter <[email protected]> Date: Sat Jun 30 16:07:29 2018 -0700 Mock the gfycat requests during unit tests [ci skip] commit 1adad3e Author: Weston Ruter <[email protected]> Date: Sat Jun 30 15:59:17 2018 -0700 Fix tests regarding amp status metabox [ci skip] commit a7371d1 Author: Weston Ruter <[email protected]> Date: Sat Jun 30 09:57:21 2018 -0700 Simplify logic in AMP_Post_Meta_Box::render_status [ci skip] commit a616e84 Author: Weston Ruter <[email protected]> Date: Sat Jun 30 00:07:05 2018 -0700 Don't show post enable/disable if template is not available Fix up some tests Address CR feedback [ci skip] commit 3f4ef4c Author: Weston Ruter <[email protected]> Date: Fri Jun 29 11:18:10 2018 -0700 WIP13 [ci skip] commit 5288ccb Author: Weston Ruter <[email protected]> Date: Fri Jun 29 11:10:46 2018 -0700 WIP12 [ci skip] commit 0131c52 Author: Weston Ruter <[email protected]> Date: Thu Jun 28 20:44:23 2018 -0700 WIP11 [ci skip] commit 8f46ee7 Author: Weston Ruter <[email protected]> Date: Thu Jun 28 18:09:52 2018 -0700 WIP10 [ci skip] commit f440592 Author: Weston Ruter <[email protected]> Date: Thu Jun 28 17:00:58 2018 -0700 WIP9 [ci skip] commit a7bf31e Author: Weston Ruter <[email protected]> Date: Wed Jun 27 23:41:34 2018 -0700 WIP8 commit e5f4b77 Author: Weston Ruter <[email protected]> Date: Wed Jun 27 23:09:05 2018 -0700 Remove needless get_query_template commit 3377ecf Author: Weston Ruter <[email protected]> Date: Wed Jun 27 22:22:01 2018 -0700 WIP7 commit 2eda94b Author: Weston Ruter <[email protected]> Date: Wed Jun 27 21:46:34 2018 -0700 WIP6 commit 1d2053c Author: Weston Ruter <[email protected]> Date: Wed Jun 27 16:42:27 2018 -0700 WIP5 commit 718e643 Author: Weston Ruter <[email protected]> Date: Wed Jun 27 12:40:15 2018 -0700 WIP4 commit fab22d4 Author: Weston Ruter <[email protected]> Date: Tue Jun 26 16:13:27 2018 -0700 WIP3 commit 6149da1 Author: Weston Ruter <[email protected]> Date: Sun Jun 24 14:42:05 2018 -0700 WIP2 commit 143cd2a Author: Weston Ruter <[email protected]> Date: Thu Jun 21 17:12:35 2018 -0700 WIP
- Loading branch information