Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-inclu...
File: class-wp-query.php
return (bool) $this->is_paged;
[4500] Fix | Delete
}
[4501] Fix | Delete
[4502] Fix | Delete
/**
[4503] Fix | Delete
* Determines whether the query is for a post or page preview.
[4504] Fix | Delete
*
[4505] Fix | Delete
* @since 3.1.0
[4506] Fix | Delete
*
[4507] Fix | Delete
* @return bool Whether the query is for a post or page preview.
[4508] Fix | Delete
*/
[4509] Fix | Delete
public function is_preview() {
[4510] Fix | Delete
return (bool) $this->is_preview;
[4511] Fix | Delete
}
[4512] Fix | Delete
[4513] Fix | Delete
/**
[4514] Fix | Delete
* Determines whether the query is for the robots.txt file.
[4515] Fix | Delete
*
[4516] Fix | Delete
* @since 3.1.0
[4517] Fix | Delete
*
[4518] Fix | Delete
* @return bool Whether the query is for the robots.txt file.
[4519] Fix | Delete
*/
[4520] Fix | Delete
public function is_robots() {
[4521] Fix | Delete
return (bool) $this->is_robots;
[4522] Fix | Delete
}
[4523] Fix | Delete
[4524] Fix | Delete
/**
[4525] Fix | Delete
* Determines whether the query is for the favicon.ico file.
[4526] Fix | Delete
*
[4527] Fix | Delete
* @since 5.4.0
[4528] Fix | Delete
*
[4529] Fix | Delete
* @return bool Whether the query is for the favicon.ico file.
[4530] Fix | Delete
*/
[4531] Fix | Delete
public function is_favicon() {
[4532] Fix | Delete
return (bool) $this->is_favicon;
[4533] Fix | Delete
}
[4534] Fix | Delete
[4535] Fix | Delete
/**
[4536] Fix | Delete
* Determines whether the query is for a search.
[4537] Fix | Delete
*
[4538] Fix | Delete
* @since 3.1.0
[4539] Fix | Delete
*
[4540] Fix | Delete
* @return bool Whether the query is for a search.
[4541] Fix | Delete
*/
[4542] Fix | Delete
public function is_search() {
[4543] Fix | Delete
return (bool) $this->is_search;
[4544] Fix | Delete
}
[4545] Fix | Delete
[4546] Fix | Delete
/**
[4547] Fix | Delete
* Determines whether the query is for an existing single post.
[4548] Fix | Delete
*
[4549] Fix | Delete
* Works for any post type excluding pages.
[4550] Fix | Delete
*
[4551] Fix | Delete
* If the $post parameter is specified, this function will additionally
[4552] Fix | Delete
* check if the query is for one of the Posts specified.
[4553] Fix | Delete
*
[4554] Fix | Delete
* @since 3.1.0
[4555] Fix | Delete
*
[4556] Fix | Delete
* @see WP_Query::is_page()
[4557] Fix | Delete
* @see WP_Query::is_singular()
[4558] Fix | Delete
*
[4559] Fix | Delete
* @param int|string|int[]|string[] $post Optional. Post ID, title, slug, path, or array of such
[4560] Fix | Delete
* to check against. Default empty.
[4561] Fix | Delete
* @return bool Whether the query is for an existing single post.
[4562] Fix | Delete
*/
[4563] Fix | Delete
public function is_single( $post = '' ) {
[4564] Fix | Delete
if ( ! $this->is_single ) {
[4565] Fix | Delete
return false;
[4566] Fix | Delete
}
[4567] Fix | Delete
[4568] Fix | Delete
if ( empty( $post ) ) {
[4569] Fix | Delete
return true;
[4570] Fix | Delete
}
[4571] Fix | Delete
[4572] Fix | Delete
$post_obj = $this->get_queried_object();
[4573] Fix | Delete
if ( ! $post_obj ) {
[4574] Fix | Delete
return false;
[4575] Fix | Delete
}
[4576] Fix | Delete
[4577] Fix | Delete
$post = array_map( 'strval', (array) $post );
[4578] Fix | Delete
[4579] Fix | Delete
if ( in_array( (string) $post_obj->ID, $post, true ) ) {
[4580] Fix | Delete
return true;
[4581] Fix | Delete
} elseif ( in_array( $post_obj->post_title, $post, true ) ) {
[4582] Fix | Delete
return true;
[4583] Fix | Delete
} elseif ( in_array( $post_obj->post_name, $post, true ) ) {
[4584] Fix | Delete
return true;
[4585] Fix | Delete
} else {
[4586] Fix | Delete
foreach ( $post as $postpath ) {
[4587] Fix | Delete
if ( ! strpos( $postpath, '/' ) ) {
[4588] Fix | Delete
continue;
[4589] Fix | Delete
}
[4590] Fix | Delete
$postpath_obj = get_page_by_path( $postpath, OBJECT, $post_obj->post_type );
[4591] Fix | Delete
[4592] Fix | Delete
if ( $postpath_obj && ( $postpath_obj->ID == $post_obj->ID ) ) {
[4593] Fix | Delete
return true;
[4594] Fix | Delete
}
[4595] Fix | Delete
}
[4596] Fix | Delete
}
[4597] Fix | Delete
return false;
[4598] Fix | Delete
}
[4599] Fix | Delete
[4600] Fix | Delete
/**
[4601] Fix | Delete
* Determines whether the query is for an existing single post of any post type
[4602] Fix | Delete
* (post, attachment, page, custom post types).
[4603] Fix | Delete
*
[4604] Fix | Delete
* If the $post_types parameter is specified, this function will additionally
[4605] Fix | Delete
* check if the query is for one of the Posts Types specified.
[4606] Fix | Delete
*
[4607] Fix | Delete
* @since 3.1.0
[4608] Fix | Delete
*
[4609] Fix | Delete
* @see WP_Query::is_page()
[4610] Fix | Delete
* @see WP_Query::is_single()
[4611] Fix | Delete
*
[4612] Fix | Delete
* @param string|string[] $post_types Optional. Post type or array of post types
[4613] Fix | Delete
* to check against. Default empty.
[4614] Fix | Delete
* @return bool Whether the query is for an existing single post
[4615] Fix | Delete
* or any of the given post types.
[4616] Fix | Delete
*/
[4617] Fix | Delete
public function is_singular( $post_types = '' ) {
[4618] Fix | Delete
if ( empty( $post_types ) || ! $this->is_singular ) {
[4619] Fix | Delete
return (bool) $this->is_singular;
[4620] Fix | Delete
}
[4621] Fix | Delete
[4622] Fix | Delete
$post_obj = $this->get_queried_object();
[4623] Fix | Delete
if ( ! $post_obj ) {
[4624] Fix | Delete
return false;
[4625] Fix | Delete
}
[4626] Fix | Delete
[4627] Fix | Delete
return in_array( $post_obj->post_type, (array) $post_types, true );
[4628] Fix | Delete
}
[4629] Fix | Delete
[4630] Fix | Delete
/**
[4631] Fix | Delete
* Determines whether the query is for a specific time.
[4632] Fix | Delete
*
[4633] Fix | Delete
* @since 3.1.0
[4634] Fix | Delete
*
[4635] Fix | Delete
* @return bool Whether the query is for a specific time.
[4636] Fix | Delete
*/
[4637] Fix | Delete
public function is_time() {
[4638] Fix | Delete
return (bool) $this->is_time;
[4639] Fix | Delete
}
[4640] Fix | Delete
[4641] Fix | Delete
/**
[4642] Fix | Delete
* Determines whether the query is for a trackback endpoint call.
[4643] Fix | Delete
*
[4644] Fix | Delete
* @since 3.1.0
[4645] Fix | Delete
*
[4646] Fix | Delete
* @return bool Whether the query is for a trackback endpoint call.
[4647] Fix | Delete
*/
[4648] Fix | Delete
public function is_trackback() {
[4649] Fix | Delete
return (bool) $this->is_trackback;
[4650] Fix | Delete
}
[4651] Fix | Delete
[4652] Fix | Delete
/**
[4653] Fix | Delete
* Determines whether the query is for an existing year archive.
[4654] Fix | Delete
*
[4655] Fix | Delete
* @since 3.1.0
[4656] Fix | Delete
*
[4657] Fix | Delete
* @return bool Whether the query is for an existing year archive.
[4658] Fix | Delete
*/
[4659] Fix | Delete
public function is_year() {
[4660] Fix | Delete
return (bool) $this->is_year;
[4661] Fix | Delete
}
[4662] Fix | Delete
[4663] Fix | Delete
/**
[4664] Fix | Delete
* Determines whether the query is a 404 (returns no results).
[4665] Fix | Delete
*
[4666] Fix | Delete
* @since 3.1.0
[4667] Fix | Delete
*
[4668] Fix | Delete
* @return bool Whether the query is a 404 error.
[4669] Fix | Delete
*/
[4670] Fix | Delete
public function is_404() {
[4671] Fix | Delete
return (bool) $this->is_404;
[4672] Fix | Delete
}
[4673] Fix | Delete
[4674] Fix | Delete
/**
[4675] Fix | Delete
* Determines whether the query is for an embedded post.
[4676] Fix | Delete
*
[4677] Fix | Delete
* @since 4.4.0
[4678] Fix | Delete
*
[4679] Fix | Delete
* @return bool Whether the query is for an embedded post.
[4680] Fix | Delete
*/
[4681] Fix | Delete
public function is_embed() {
[4682] Fix | Delete
return (bool) $this->is_embed;
[4683] Fix | Delete
}
[4684] Fix | Delete
[4685] Fix | Delete
/**
[4686] Fix | Delete
* Determines whether the query is the main query.
[4687] Fix | Delete
*
[4688] Fix | Delete
* @since 3.3.0
[4689] Fix | Delete
*
[4690] Fix | Delete
* @global WP_Query $wp_the_query WordPress Query object.
[4691] Fix | Delete
*
[4692] Fix | Delete
* @return bool Whether the query is the main query.
[4693] Fix | Delete
*/
[4694] Fix | Delete
public function is_main_query() {
[4695] Fix | Delete
global $wp_the_query;
[4696] Fix | Delete
return $wp_the_query === $this;
[4697] Fix | Delete
}
[4698] Fix | Delete
[4699] Fix | Delete
/**
[4700] Fix | Delete
* Sets up global post data.
[4701] Fix | Delete
*
[4702] Fix | Delete
* @since 4.1.0
[4703] Fix | Delete
* @since 4.4.0 Added the ability to pass a post ID to `$post`.
[4704] Fix | Delete
*
[4705] Fix | Delete
* @global int $id
[4706] Fix | Delete
* @global WP_User $authordata
[4707] Fix | Delete
* @global string $currentday
[4708] Fix | Delete
* @global string $currentmonth
[4709] Fix | Delete
* @global int $page
[4710] Fix | Delete
* @global array $pages
[4711] Fix | Delete
* @global int $multipage
[4712] Fix | Delete
* @global int $more
[4713] Fix | Delete
* @global int $numpages
[4714] Fix | Delete
*
[4715] Fix | Delete
* @param WP_Post|object|int $post WP_Post instance or Post ID/object.
[4716] Fix | Delete
* @return true True when finished.
[4717] Fix | Delete
*/
[4718] Fix | Delete
public function setup_postdata( $post ) {
[4719] Fix | Delete
global $id, $authordata, $currentday, $currentmonth, $page, $pages, $multipage, $more, $numpages;
[4720] Fix | Delete
[4721] Fix | Delete
if ( ! ( $post instanceof WP_Post ) ) {
[4722] Fix | Delete
$post = get_post( $post );
[4723] Fix | Delete
}
[4724] Fix | Delete
[4725] Fix | Delete
if ( ! $post ) {
[4726] Fix | Delete
return;
[4727] Fix | Delete
}
[4728] Fix | Delete
[4729] Fix | Delete
$elements = $this->generate_postdata( $post );
[4730] Fix | Delete
if ( false === $elements ) {
[4731] Fix | Delete
return;
[4732] Fix | Delete
}
[4733] Fix | Delete
[4734] Fix | Delete
$id = $elements['id'];
[4735] Fix | Delete
$authordata = $elements['authordata'];
[4736] Fix | Delete
$currentday = $elements['currentday'];
[4737] Fix | Delete
$currentmonth = $elements['currentmonth'];
[4738] Fix | Delete
$page = $elements['page'];
[4739] Fix | Delete
$pages = $elements['pages'];
[4740] Fix | Delete
$multipage = $elements['multipage'];
[4741] Fix | Delete
$more = $elements['more'];
[4742] Fix | Delete
$numpages = $elements['numpages'];
[4743] Fix | Delete
[4744] Fix | Delete
/**
[4745] Fix | Delete
* Fires once the post data has been set up.
[4746] Fix | Delete
*
[4747] Fix | Delete
* @since 2.8.0
[4748] Fix | Delete
* @since 4.1.0 Introduced `$query` parameter.
[4749] Fix | Delete
*
[4750] Fix | Delete
* @param WP_Post $post The Post object (passed by reference).
[4751] Fix | Delete
* @param WP_Query $query The current Query object (passed by reference).
[4752] Fix | Delete
*/
[4753] Fix | Delete
do_action_ref_array( 'the_post', array( &$post, &$this ) );
[4754] Fix | Delete
[4755] Fix | Delete
return true;
[4756] Fix | Delete
}
[4757] Fix | Delete
[4758] Fix | Delete
/**
[4759] Fix | Delete
* Generates post data.
[4760] Fix | Delete
*
[4761] Fix | Delete
* @since 5.2.0
[4762] Fix | Delete
*
[4763] Fix | Delete
* @param WP_Post|object|int $post WP_Post instance or Post ID/object.
[4764] Fix | Delete
* @return array|false Elements of post or false on failure.
[4765] Fix | Delete
*/
[4766] Fix | Delete
public function generate_postdata( $post ) {
[4767] Fix | Delete
[4768] Fix | Delete
if ( ! ( $post instanceof WP_Post ) ) {
[4769] Fix | Delete
$post = get_post( $post );
[4770] Fix | Delete
}
[4771] Fix | Delete
[4772] Fix | Delete
if ( ! $post ) {
[4773] Fix | Delete
return false;
[4774] Fix | Delete
}
[4775] Fix | Delete
[4776] Fix | Delete
$id = (int) $post->ID;
[4777] Fix | Delete
[4778] Fix | Delete
$authordata = get_userdata( $post->post_author );
[4779] Fix | Delete
[4780] Fix | Delete
$currentday = false;
[4781] Fix | Delete
$currentmonth = false;
[4782] Fix | Delete
[4783] Fix | Delete
$post_date = $post->post_date;
[4784] Fix | Delete
if ( ! empty( $post_date ) && '0000-00-00 00:00:00' !== $post_date ) {
[4785] Fix | Delete
// Avoid using mysql2date for performance reasons.
[4786] Fix | Delete
$currentmonth = substr( $post_date, 5, 2 );
[4787] Fix | Delete
$day = substr( $post_date, 8, 2 );
[4788] Fix | Delete
$year = substr( $post_date, 2, 2 );
[4789] Fix | Delete
[4790] Fix | Delete
$currentday = sprintf( '%s.%s.%s', $day, $currentmonth, $year );
[4791] Fix | Delete
}
[4792] Fix | Delete
[4793] Fix | Delete
$numpages = 1;
[4794] Fix | Delete
$multipage = 0;
[4795] Fix | Delete
$page = $this->get( 'page' );
[4796] Fix | Delete
if ( ! $page ) {
[4797] Fix | Delete
$page = 1;
[4798] Fix | Delete
}
[4799] Fix | Delete
[4800] Fix | Delete
/*
[4801] Fix | Delete
* Force full post content when viewing the permalink for the $post,
[4802] Fix | Delete
* or when on an RSS feed. Otherwise respect the 'more' tag.
[4803] Fix | Delete
*/
[4804] Fix | Delete
if ( get_queried_object_id() === $post->ID && ( $this->is_page() || $this->is_single() ) ) {
[4805] Fix | Delete
$more = 1;
[4806] Fix | Delete
} elseif ( $this->is_feed() ) {
[4807] Fix | Delete
$more = 1;
[4808] Fix | Delete
} else {
[4809] Fix | Delete
$more = 0;
[4810] Fix | Delete
}
[4811] Fix | Delete
[4812] Fix | Delete
$content = $post->post_content;
[4813] Fix | Delete
if ( str_contains( $content, '<!--nextpage-->' ) ) {
[4814] Fix | Delete
$content = str_replace( "\n<!--nextpage-->\n", '<!--nextpage-->', $content );
[4815] Fix | Delete
$content = str_replace( "\n<!--nextpage-->", '<!--nextpage-->', $content );
[4816] Fix | Delete
$content = str_replace( "<!--nextpage-->\n", '<!--nextpage-->', $content );
[4817] Fix | Delete
[4818] Fix | Delete
// Remove the nextpage block delimiters, to avoid invalid block structures in the split content.
[4819] Fix | Delete
$content = str_replace( '<!-- wp:nextpage -->', '', $content );
[4820] Fix | Delete
$content = str_replace( '<!-- /wp:nextpage -->', '', $content );
[4821] Fix | Delete
[4822] Fix | Delete
// Ignore nextpage at the beginning of the content.
[4823] Fix | Delete
if ( str_starts_with( $content, '<!--nextpage-->' ) ) {
[4824] Fix | Delete
$content = substr( $content, 15 );
[4825] Fix | Delete
}
[4826] Fix | Delete
[4827] Fix | Delete
$pages = explode( '<!--nextpage-->', $content );
[4828] Fix | Delete
} else {
[4829] Fix | Delete
$pages = array( $post->post_content );
[4830] Fix | Delete
}
[4831] Fix | Delete
[4832] Fix | Delete
/**
[4833] Fix | Delete
* Filters the "pages" derived from splitting the post content.
[4834] Fix | Delete
*
[4835] Fix | Delete
* "Pages" are determined by splitting the post content based on the presence
[4836] Fix | Delete
* of `<!-- nextpage -->` tags.
[4837] Fix | Delete
*
[4838] Fix | Delete
* @since 4.4.0
[4839] Fix | Delete
*
[4840] Fix | Delete
* @param string[] $pages Array of "pages" from the post content split by `<!-- nextpage -->` tags.
[4841] Fix | Delete
* @param WP_Post $post Current post object.
[4842] Fix | Delete
*/
[4843] Fix | Delete
$pages = apply_filters( 'content_pagination', $pages, $post );
[4844] Fix | Delete
[4845] Fix | Delete
$numpages = count( $pages );
[4846] Fix | Delete
[4847] Fix | Delete
if ( $numpages > 1 ) {
[4848] Fix | Delete
if ( $page > 1 ) {
[4849] Fix | Delete
$more = 1;
[4850] Fix | Delete
}
[4851] Fix | Delete
$multipage = 1;
[4852] Fix | Delete
} else {
[4853] Fix | Delete
$multipage = 0;
[4854] Fix | Delete
}
[4855] Fix | Delete
[4856] Fix | Delete
$elements = compact( 'id', 'authordata', 'currentday', 'currentmonth', 'page', 'pages', 'multipage', 'more', 'numpages' );
[4857] Fix | Delete
[4858] Fix | Delete
return $elements;
[4859] Fix | Delete
}
[4860] Fix | Delete
[4861] Fix | Delete
/**
[4862] Fix | Delete
* Generates cache key.
[4863] Fix | Delete
*
[4864] Fix | Delete
* @since 6.1.0
[4865] Fix | Delete
*
[4866] Fix | Delete
* @global wpdb $wpdb WordPress database abstraction object.
[4867] Fix | Delete
*
[4868] Fix | Delete
* @param array $args Query arguments.
[4869] Fix | Delete
* @param string $sql SQL statement.
[4870] Fix | Delete
* @return string Cache key.
[4871] Fix | Delete
*/
[4872] Fix | Delete
protected function generate_cache_key( array $args, $sql ) {
[4873] Fix | Delete
global $wpdb;
[4874] Fix | Delete
[4875] Fix | Delete
unset(
[4876] Fix | Delete
$args['cache_results'],
[4877] Fix | Delete
$args['fields'],
[4878] Fix | Delete
$args['lazy_load_term_meta'],
[4879] Fix | Delete
$args['update_post_meta_cache'],
[4880] Fix | Delete
$args['update_post_term_cache'],
[4881] Fix | Delete
$args['update_menu_item_cache'],
[4882] Fix | Delete
$args['suppress_filters']
[4883] Fix | Delete
);
[4884] Fix | Delete
[4885] Fix | Delete
if ( empty( $args['post_type'] ) ) {
[4886] Fix | Delete
if ( $this->is_attachment ) {
[4887] Fix | Delete
$args['post_type'] = 'attachment';
[4888] Fix | Delete
} elseif ( $this->is_page ) {
[4889] Fix | Delete
$args['post_type'] = 'page';
[4890] Fix | Delete
} else {
[4891] Fix | Delete
$args['post_type'] = 'post';
[4892] Fix | Delete
}
[4893] Fix | Delete
} elseif ( 'any' === $args['post_type'] ) {
[4894] Fix | Delete
$args['post_type'] = array_values( get_post_types( array( 'exclude_from_search' => false ) ) );
[4895] Fix | Delete
}
[4896] Fix | Delete
$args['post_type'] = (array) $args['post_type'];
[4897] Fix | Delete
// Sort post types to ensure same cache key generation.
[4898] Fix | Delete
sort( $args['post_type'] );
[4899] Fix | Delete
[4900] Fix | Delete
if ( isset( $args['post_status'] ) ) {
[4901] Fix | Delete
$args['post_status'] = (array) $args['post_status'];
[4902] Fix | Delete
// Sort post status to ensure same cache key generation.
[4903] Fix | Delete
sort( $args['post_status'] );
[4904] Fix | Delete
}
[4905] Fix | Delete
[4906] Fix | Delete
// Add a default orderby value of date to ensure same cache key generation.
[4907] Fix | Delete
if ( ! isset( $q['orderby'] ) ) {
[4908] Fix | Delete
$args['orderby'] = 'date';
[4909] Fix | Delete
}
[4910] Fix | Delete
[4911] Fix | Delete
$placeholder = $wpdb->placeholder_escape();
[4912] Fix | Delete
array_walk_recursive(
[4913] Fix | Delete
$args,
[4914] Fix | Delete
/*
[4915] Fix | Delete
* Replace wpdb placeholders with the string used in the database
[4916] Fix | Delete
* query to avoid unreachable cache keys. This is necessary because
[4917] Fix | Delete
* the placeholder is randomly generated in each request.
[4918] Fix | Delete
*
[4919] Fix | Delete
* $value is passed by reference to allow it to be modified.
[4920] Fix | Delete
* array_walk_recursive() does not return an array.
[4921] Fix | Delete
*/
[4922] Fix | Delete
static function ( &$value ) use ( $wpdb, $placeholder ) {
[4923] Fix | Delete
if ( is_string( $value ) && str_contains( $value, $placeholder ) ) {
[4924] Fix | Delete
$value = $wpdb->remove_placeholder_escape( $value );
[4925] Fix | Delete
}
[4926] Fix | Delete
}
[4927] Fix | Delete
);
[4928] Fix | Delete
[4929] Fix | Delete
ksort( $args );
[4930] Fix | Delete
[4931] Fix | Delete
// Replace wpdb placeholder in the SQL statement used by the cache key.
[4932] Fix | Delete
$sql = $wpdb->remove_placeholder_escape( $sql );
[4933] Fix | Delete
$key = md5( serialize( $args ) . $sql );
[4934] Fix | Delete
[4935] Fix | Delete
$last_changed = wp_cache_get_last_changed( 'posts' );
[4936] Fix | Delete
if ( ! empty( $this->tax_query->queries ) ) {
[4937] Fix | Delete
$last_changed .= wp_cache_get_last_changed( 'terms' );
[4938] Fix | Delete
}
[4939] Fix | Delete
[4940] Fix | Delete
return "wp_query:$key:$last_changed";
[4941] Fix | Delete
}
[4942] Fix | Delete
[4943] Fix | Delete
/**
[4944] Fix | Delete
* After looping through a nested query, this function
[4945] Fix | Delete
* restores the $post global to the current post in this query.
[4946] Fix | Delete
*
[4947] Fix | Delete
* @since 3.7.0
[4948] Fix | Delete
*
[4949] Fix | Delete
* @global WP_Post $post Global post object.
[4950] Fix | Delete
*/
[4951] Fix | Delete
public function reset_postdata() {
[4952] Fix | Delete
if ( ! empty( $this->post ) ) {
[4953] Fix | Delete
$GLOBALS['post'] = $this->post;
[4954] Fix | Delete
$this->setup_postdata( $this->post );
[4955] Fix | Delete
}
[4956] Fix | Delete
}
[4957] Fix | Delete
[4958] Fix | Delete
/**
[4959] Fix | Delete
* Lazyloads term meta for posts in the loop.
[4960] Fix | Delete
*
[4961] Fix | Delete
* @since 4.4.0
[4962] Fix | Delete
* @deprecated 4.5.0 See wp_queue_posts_for_term_meta_lazyload().
[4963] Fix | Delete
*
[4964] Fix | Delete
* @param mixed $check
[4965] Fix | Delete
* @param int $term_id
[4966] Fix | Delete
* @return mixed
[4967] Fix | Delete
*/
[4968] Fix | Delete
public function lazyload_term_meta( $check, $term_id ) {
[4969] Fix | Delete
_deprecated_function( __METHOD__, '4.5.0' );
[4970] Fix | Delete
return $check;
[4971] Fix | Delete
}
[4972] Fix | Delete
[4973] Fix | Delete
/**
[4974] Fix | Delete
* Lazyloads comment meta for comments in the loop.
[4975] Fix | Delete
*
[4976] Fix | Delete
* @since 4.4.0
[4977] Fix | Delete
* @deprecated 4.5.0 See wp_lazyload_comment_meta().
[4978] Fix | Delete
*
[4979] Fix | Delete
* @param mixed $check
[4980] Fix | Delete
* @param int $comment_id
[4981] Fix | Delete
* @return mixed
[4982] Fix | Delete
*/
[4983] Fix | Delete
public function lazyload_comment_meta( $check, $comment_id ) {
[4984] Fix | Delete
_deprecated_function( __METHOD__, '4.5.0' );
[4985] Fix | Delete
return $check;
[4986] Fix | Delete
}
[4987] Fix | Delete
}
[4988] Fix | Delete
[4989] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function