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/clone/wp-inclu...
File: category-template.php
* The given tags are checked against the post's tags' term_ids, names and slugs.
[1500] Fix | Delete
* Tags given as integers will only be checked against the post's tags' term_ids.
[1501] Fix | Delete
*
[1502] Fix | Delete
* If no tags are given, determines if post has any tags.
[1503] Fix | Delete
*
[1504] Fix | Delete
* For more information on this and similar theme functions, check out
[1505] Fix | Delete
* the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
[1506] Fix | Delete
* Conditional Tags} article in the Theme Developer Handbook.
[1507] Fix | Delete
*
[1508] Fix | Delete
* @since 2.6.0
[1509] Fix | Delete
* @since 2.7.0 Tags given as integers are only checked against
[1510] Fix | Delete
* the post's tags' term_ids, not names or slugs.
[1511] Fix | Delete
* @since 2.7.0 Can be used outside of the WordPress Loop if `$post` is provided.
[1512] Fix | Delete
*
[1513] Fix | Delete
* @param string|int|array $tag Optional. The tag name/term_id/slug,
[1514] Fix | Delete
* or an array of them to check for. Default empty.
[1515] Fix | Delete
* @param int|WP_Post $post Optional. Post to check. Defaults to the current post.
[1516] Fix | Delete
* @return bool True if the current post has any of the given tags
[1517] Fix | Delete
* (or any tag, if no tag specified). False otherwise.
[1518] Fix | Delete
*/
[1519] Fix | Delete
function has_tag( $tag = '', $post = null ) {
[1520] Fix | Delete
return has_term( $tag, 'post_tag', $post );
[1521] Fix | Delete
}
[1522] Fix | Delete
[1523] Fix | Delete
/**
[1524] Fix | Delete
* Checks if the current post has any of given terms.
[1525] Fix | Delete
*
[1526] Fix | Delete
* The given terms are checked against the post's terms' term_ids, names and slugs.
[1527] Fix | Delete
* Terms given as integers will only be checked against the post's terms' term_ids.
[1528] Fix | Delete
*
[1529] Fix | Delete
* If no terms are given, determines if post has any terms.
[1530] Fix | Delete
*
[1531] Fix | Delete
* @since 3.1.0
[1532] Fix | Delete
*
[1533] Fix | Delete
* @param string|int|array $term Optional. The term name/term_id/slug,
[1534] Fix | Delete
* or an array of them to check for. Default empty.
[1535] Fix | Delete
* @param string $taxonomy Optional. Taxonomy name. Default empty.
[1536] Fix | Delete
* @param int|WP_Post $post Optional. Post to check. Defaults to the current post.
[1537] Fix | Delete
* @return bool True if the current post has any of the given terms
[1538] Fix | Delete
* (or any term, if no term specified). False otherwise.
[1539] Fix | Delete
*/
[1540] Fix | Delete
function has_term( $term = '', $taxonomy = '', $post = null ) {
[1541] Fix | Delete
$post = get_post( $post );
[1542] Fix | Delete
[1543] Fix | Delete
if ( ! $post ) {
[1544] Fix | Delete
return false;
[1545] Fix | Delete
}
[1546] Fix | Delete
[1547] Fix | Delete
$r = is_object_in_term( $post->ID, $taxonomy, $term );
[1548] Fix | Delete
if ( is_wp_error( $r ) ) {
[1549] Fix | Delete
return false;
[1550] Fix | Delete
}
[1551] Fix | Delete
[1552] Fix | Delete
return $r;
[1553] Fix | Delete
}
[1554] Fix | Delete
[1555] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function