mp(); $recent_content_items = $this->recent_content_indexable_collector->get_recent_content_for_meta_descriptions( $post_type, $two_months_ago, self::DEFAULT_LIMIT, ); $child_tasks = []; foreach ( $recent_content_items as $content_item_data ) { $child_tasks[] = new Improve_Default_Meta_Descriptions_Child( $this, $content_item_data, ); } return $child_tasks; } /** * Returns whether the task is valid. * * The task is only shown when: * - Indexables are being indexed. * - The global meta description template for this post type is empty or contains only hardcoded text without replacevars. * If it contains even one replacevar (%%...%%), descriptions can be considered customised in each post and the task is unnecessary. * * @return bool */ public function is_valid(): bool { if ( ! $this->indexable_helper->should_index_indexables() ) { return false; } $metadesc = $this->options_helper->get( 'metadesc-' . $this->get_post_type() ); if ( empty( $metadesc ) ) { return true; } // If the template contains at least one replacevar (%%...%%), the task is not valid. return ! (bool) \preg_match( '/%%[^%]+%%/', $metadesc ); } } https://www.mm-vyskoveprace.sk/post-sitemap.xml 2018-03-11T10:56:39+00:00 https://www.mm-vyskoveprace.sk/page-sitemap.xml 2026-01-30T06:28:34+00:00 https://www.mm-vyskoveprace.sk/attachment-sitemap.xml 2026-05-04T13:13:54+00:00 https://www.mm-vyskoveprace.sk/category-sitemap.xml 2018-03-11T10:56:39+00:00 https://www.mm-vyskoveprace.sk/post_tag-sitemap.xml 2018-03-11T10:56:39+00:00 https://www.mm-vyskoveprace.sk/author-sitemap.xml 2019-12-02T09:14:01+00:00