Reduce PHP/HTML mode-switch overhead 2

This commit is contained in:
Tetrakern 2024-05-17 12:34:14 +02:00
parent c384de6e01
commit a851b13cb0
52 changed files with 0 additions and 104 deletions

View File

@ -14,9 +14,7 @@
* @see taxonomy-fcn_fandom.php * @see taxonomy-fcn_fandom.php
* @see taxonomy-fcn_genre.php * @see taxonomy-fcn_genre.php
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -27,9 +27,7 @@
* @internal $args['thumbnail'] Whether the image is rendered. Default true. * @internal $args['thumbnail'] Whether the image is rendered. Default true.
* @internal $args['classes'] String of additional CSS classes. Default empty. * @internal $args['classes'] String of additional CSS classes. Default empty.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -13,9 +13,7 @@
* @internal $args['seamless'] Whether to render the image seamless. Default false (Customizer). * @internal $args['seamless'] Whether to render the image seamless. Default false (Customizer).
* @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer). * @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer).
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -12,9 +12,7 @@
* @internal $args['order'] Current order. Default 'desc'. Unsafe. * @internal $args['order'] Current order. Default 'desc'. Unsafe.
* @internal $args['orderby'] Current orderby. Default 'modified'. Unsafe. * @internal $args['orderby'] Current orderby. Default 'modified'. Unsafe.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -11,9 +11,7 @@
* @internal $args['order'] Current order. Default 'desc'. Unsafe. * @internal $args['order'] Current order. Default 'desc'. Unsafe.
* @internal $args['orderby'] Current orderby. Default 'modified'. Unsafe. * @internal $args['orderby'] Current orderby. Default 'modified'. Unsafe.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -12,9 +12,7 @@
* @internal $args['order'] Current order. Default 'desc'. Unsafe. * @internal $args['order'] Current order. Default 'desc'. Unsafe.
* @internal $args['orderby'] Current orderby. Default 'modified'. Unsafe. * @internal $args['orderby'] Current orderby. Default 'modified'. Unsafe.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -9,9 +9,7 @@
* @internal $args['show_type'] Whether to show the post type label. Unsafe. * @internal $args['show_type'] Whether to show the post type label. Unsafe.
* @internal $args['cache'] Whether to account for active caching. Unsafe. * @internal $args['cache'] Whether to account for active caching. Unsafe.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -9,9 +9,7 @@
* @internal $args['show_type'] Whether to show the post type label. Unsafe. * @internal $args['show_type'] Whether to show the post type label. Unsafe.
* @internal $args['cache'] Whether to account for active caching. Unsafe. * @internal $args['cache'] Whether to account for active caching. Unsafe.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -11,9 +11,7 @@
* @internal $args['order'] Current order. Default 'desc'. Unsafe. * @internal $args['order'] Current order. Default 'desc'. Unsafe.
* @internal $args['orderby'] Current orderby. Default 'modified'. Unsafe. * @internal $args['orderby'] Current orderby. Default 'modified'. Unsafe.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -13,9 +13,7 @@
* @internal $args['order'] Current order. Default 'desc'. Unsafe. * @internal $args['order'] Current order. Default 'desc'. Unsafe.
* @internal $args['orderby'] Current orderby. Default 'modified'. Unsafe. * @internal $args['orderby'] Current orderby. Default 'modified'. Unsafe.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -16,9 +16,7 @@
* @internal $args['chapter_title'] Safe chapter title. * @internal $args['chapter_title'] Safe chapter title.
* @internal $args['chapter_password'] Chapter password or empty string. * @internal $args['chapter_password'] Chapter password or empty string.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -18,9 +18,7 @@
* @internal $args['featured_list'] IDs of featured items in the collection. * @internal $args['featured_list'] IDs of featured items in the collection.
* @internal $args['featured_query'] Paginated query of featured items. * @internal $args['featured_query'] Paginated query of featured items.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -19,9 +19,7 @@
* @internal $args['featured_list'] IDs of featured items in the collection. Already cleaned. * @internal $args['featured_list'] IDs of featured items in the collection. Already cleaned.
* @internal $args['featured_query'] Paginated query of featured items. Already cleaned. * @internal $args['featured_query'] Paginated query of featured items. Already cleaned.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -6,9 +6,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 4.0.0 * @since 4.0.0
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -8,9 +8,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 3.0 * @since 3.0
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -13,9 +13,7 @@
* @internal $args['header_image_url'] URL of the filtered header image or false. * @internal $args['header_image_url'] URL of the filtered header image or false.
* @internal $args['header_args'] Arguments passed to the header.php partial. * @internal $args['header_args'] Arguments passed to the header.php partial.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -13,9 +13,7 @@
* @internal $args['header_image_url'] URL of the filtered header image or false. * @internal $args['header_image_url'] URL of the filtered header image or false.
* @internal $args['header_args'] Arguments passed to the header.php partial. * @internal $args['header_args'] Arguments passed to the header.php partial.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -11,9 +11,7 @@
* *
* @internal $args['location'] Either 'in-navigation' or 'in-mobile-menu'. * @internal $args['location'] Either 'in-navigation' or 'in-mobile-menu'.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -30,9 +30,7 @@
* @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer). * @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer).
* @internal $args['classes'] String of additional CSS classes. Default empty. * @internal $args['classes'] String of additional CSS classes. Default empty.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -31,9 +31,7 @@
* @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer). * @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer).
* @internal $args['classes'] String of additional CSS classes. Default empty. * @internal $args['classes'] String of additional CSS classes. Default empty.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -21,9 +21,7 @@
* @internal $args['relation'] Relationship between taxonomies. * @internal $args['relation'] Relationship between taxonomies.
* @internal $args['classes'] Array of additional CSS classes. Default empty. * @internal $args['classes'] Array of additional CSS classes. Default empty.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -28,9 +28,7 @@
* @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer). * @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer).
* @internal $args['classes'] String of additional CSS classes. Default empty. * @internal $args['classes'] String of additional CSS classes. Default empty.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -28,9 +28,7 @@
* @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer). * @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer).
* @internal $args['classes'] String of additional CSS classes. Default empty. * @internal $args['classes'] String of additional CSS classes. Default empty.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -29,9 +29,7 @@
* @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer). * @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer).
* @internal $args['classes'] String of additional CSS classes. Default empty. * @internal $args['classes'] String of additional CSS classes. Default empty.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -29,9 +29,7 @@
* @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer). * @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer).
* @internal $args['classes'] String of additional CSS classes. Default empty. * @internal $args['classes'] String of additional CSS classes. Default empty.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -30,9 +30,7 @@
* @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer). * @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer).
* @internal $args['classes'] String of additional CSS classes. Default empty. * @internal $args['classes'] String of additional CSS classes. Default empty.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -32,9 +32,7 @@
* @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer). * @internal $args['thumbnail'] Whether the image is rendered. Default true (Customizer).
* @internal $args['classes'] String of additional CSS classes. Default empty. * @internal $args['classes'] String of additional CSS classes. Default empty.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -10,9 +10,7 @@
* @since 3.0 * @since 3.0
* @see partials/_post.php * @see partials/_post.php
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -9,9 +9,7 @@
* @internal $args['post_id'] The current post ID. * @internal $args['post_id'] The current post ID.
* @internal $args['post_type'] The current post type. * @internal $args['post_type'] The current post type.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -6,9 +6,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 4.0.0 * @since 4.0.0
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -6,9 +6,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 5.7.5 * @since 5.7.5
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -6,9 +6,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 4.0.0 * @since 4.0.0
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -6,9 +6,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 4.0.0 * @since 4.0.0
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -7,9 +7,7 @@
* @since 4.0.0 * @since 4.0.0
* @since 5.14.0 - Account for redirect link in story. * @since 5.14.0 - Account for redirect link in story.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -6,9 +6,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 4.1.0 * @since 4.1.0
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -6,9 +6,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 4.0.0 * @since 4.0.0
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -6,9 +6,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 5.4.6 * @since 5.4.6
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -15,9 +15,7 @@
* @internal $args['header_args'] Arguments passed to the header.php partial. * @internal $args['header_args'] Arguments passed to the header.php partial.
* @internal $args['tag'] Optional. Wrapping tag. * @internal $args['tag'] Optional. Wrapping tag.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -12,9 +12,7 @@
* *
* @internal $args['nested'] Whether the post is nested inside another query. Default null. * @internal $args['nested'] Whether the post is nested inside another query. Default null.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -14,9 +14,7 @@
* @internal $args['recommendation_id'] Recommendation post ID. * @internal $args['recommendation_id'] Recommendation post ID.
* @internal $args['title'] Safe recommendation title. * @internal $args['title'] Safe recommendation title.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -26,9 +26,7 @@
* @internal $args['relation'] Relationship between taxonomies. * @internal $args['relation'] Relationship between taxonomies.
* @internal $args['classes'] String of additional CSS classes. Default empty. * @internal $args['classes'] String of additional CSS classes. Default empty.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -15,9 +15,7 @@
* @internal $args['story_data'] Story data from fictioneer_get_story_data(). * @internal $args['story_data'] Story data from fictioneer_get_story_data().
* @internal $args['story_id'] Current story and post ID. * @internal $args['story_id'] Current story and post ID.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -14,9 +14,7 @@
* @internal $args['story_id'] Current story and post ID. * @internal $args['story_id'] Current story and post ID.
* @internal $args['context'] Render context. Default null. * @internal $args['context'] Render context. Default null.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -7,9 +7,7 @@
* @since 5.4.5 * @since 5.4.5
* @since 5.18.0 - Added 'seamless' and 'thumbnail' params. * @since 5.18.0 - Added 'seamless' and 'thumbnail' params.
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -6,9 +6,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 5.4.5 * @since 5.4.5
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -6,9 +6,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 5.4.5 * @since 5.4.5
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -6,9 +6,7 @@
* @subpackage Fictioneer * @subpackage Fictioneer
* @since 4.0.0 * @since 4.0.0
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -12,9 +12,7 @@
* @internal $args['is_editor'] True if the user is an editor. * @internal $args['is_editor'] True if the user is an editor.
* @internal $args['is_moderator'] True if the user is a moderator (by capabilities). * @internal $args['is_moderator'] True if the user is a moderator (by capabilities).
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -12,9 +12,7 @@
* @internal $args['is_editor'] True if the user is an editor. * @internal $args['is_editor'] True if the user is an editor.
* @internal $args['is_moderator'] True if the user is a moderator (by capabilities). * @internal $args['is_moderator'] True if the user is a moderator (by capabilities).
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -12,9 +12,7 @@
* @internal $args['is_editor'] True if the user is an editor. * @internal $args['is_editor'] True if the user is an editor.
* @internal $args['is_moderator'] True if the user is a moderator (by capabilities). * @internal $args['is_moderator'] True if the user is a moderator (by capabilities).
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -12,9 +12,7 @@
* @internal $args['is_editor'] True if the user is an editor. * @internal $args['is_editor'] True if the user is an editor.
* @internal $args['is_moderator'] True if the user is a moderator (by capabilities). * @internal $args['is_moderator'] True if the user is a moderator (by capabilities).
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;

View File

@ -12,9 +12,7 @@
* @internal $args['is_editor'] True if the user is an editor. * @internal $args['is_editor'] True if the user is an editor.
* @internal $args['is_moderator'] True if the user is a moderator (by capabilities). * @internal $args['is_moderator'] True if the user is a moderator (by capabilities).
*/ */
?>
<?php
// No direct access! // No direct access!
defined( 'ABSPATH' ) OR exit; defined( 'ABSPATH' ) OR exit;