You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{__('Try out a more flexible AMP by generating pages that use AMP components without requiring AMP validity! By selecting a sandboxing level, you are indicating the minimum degree of sanitization. For example, if you selected level 1 but have a page without any POST form and no custom scripts, it will still be served as valid AMP, the same as if you had selected level 3.','amp')}
149
+
</p>
150
+
<ol>
151
+
<li>
152
+
<input
153
+
type="radio"
154
+
id="sandboxing-level-1"
155
+
checked={1===sandboxingLevel}
156
+
onChange={()=>{
157
+
updateOptions({sandboxing_level: 1});
158
+
}}
159
+
/>
160
+
<labelhtmlFor="sandboxing-level-1">
161
+
<strong>
162
+
{__('Loose:','amp')}
163
+
</strong>
164
+
{' '+__('Do not remove any AMP-invalid markup by default, including custom scripts. CSS tree-shaking is disabled.','amp')}
165
+
</label>
166
+
</li>
167
+
<li>
168
+
<input
169
+
type="radio"
170
+
id="sandboxing-level-2"
171
+
checked={2===sandboxingLevel}
172
+
onChange={()=>{
173
+
updateOptions({sandboxing_level: 2});
174
+
}}
175
+
/>
176
+
<labelhtmlFor="sandboxing-level-2">
177
+
<strong>
178
+
{__('Moderate:','amp')}
179
+
</strong>
180
+
{' '+__('Remove non-AMP markup, but allow POST forms. CSS tree shaking is enabled.','amp')}
181
+
</label>
182
+
</li>
183
+
<li>
184
+
<input
185
+
type="radio"
186
+
id="sandboxing-level-3"
187
+
checked={3===sandboxingLevel}
188
+
onChange={()=>{
189
+
updateOptions({sandboxing_level: 3});
190
+
}}
191
+
/>
192
+
<labelhtmlFor="sandboxing-level-3">
193
+
<strong>
194
+
{__('Strict:','amp')}
195
+
</strong>
196
+
{' '+__('Require valid AMP.','amp')}
197
+
</label>
198
+
</li>
199
+
200
+
</ol>
201
+
</fieldset>
202
+
)
203
+
}
141
204
</TemplateModeOption>
142
205
<TemplateModeOption
143
206
details={__('In Transitional mode the active theme\'s templates are used to generate both the AMP and non-AMP versions of your content, allowing for each canonical URL to have a corresponding (paired) AMP URL. This mode is useful to progressively transition towards a fully AMP-compatible site. Depending on your themes/plugins, a varying level of development work may be required.','amp')}
Copy file name to clipboardexpand all lines: includes/amp-helper-functions.php
+38-41
Original file line number
Diff line number
Diff line change
@@ -1405,10 +1405,6 @@ function amp_is_dev_mode() {
1405
1405
( is_admin_bar_showing() && is_user_logged_in() )
1406
1406
||
1407
1407
is_customize_preview()
1408
-
||
1409
-
// Force dev mode for Bento since it currently requires the Bento experiment opt-in script.
1410
-
// @todo Remove this once Bento no longer requires an experiment to opt-in. See <https://amp.dev/documentation/guides-and-tutorials/start/bento_guide/?format=websites#enable-bento-experiment>.
1411
-
amp_is_bento_enabled()
1412
1408
)
1413
1409
);
1414
1410
}
@@ -1435,26 +1431,6 @@ function amp_is_native_img_used() {
0 commit comments