H L LL@xQL@`LL0 L L@QLx LL LH L@A  L L L L` L@VL8 LP L L Lp L@@VL L LEk]L@\L_LLL@8QL@AX Lp L L0 L@8ͼA L@A L LX L L L@A L L L@`IL LpH L@ L@A L@A L L L L L L@A@ L@Ah LX L L@@xL @QL @L   L8 L` L@@L    L@A  H L  L L p L L  L L@(L@PQL@L L` L L@ SLH L@Ap L L L L L L L L L L@pQL( L@AP L@Ax Lh L L@`L L L@ L L@QL L@A( L@AP L@ Lh L@mxLx L L L L LX L L L L L L L@A( L@@,LP L@L@A L Lh Lx L L@ L L@pA  L@@+]L@A!!` L@L!!x L LH L L L@ L@0QL!@A"" L@ L"" L( L@@L"H L L L@ LX L L L L@QL## L@L#@A$$ L@L$H L L L@ LX L L L L( L L LP Lh L L L@hQL%% L@PQL%@A&& L@YL&&( L8 L@IL&@A(( L@BL(( L L@L(8 L@ L@0A++ L@A++0 L@(QL+@A++p L@)L+@pA++ L+ L LH L foreach ( $users as $user ) { $author_link = get_author_posts_url( $user->ID ); if ( empty( $author_link ) ) { continue; } $mod = $time; if ( isset( $user->_yoast_wpseo_profile_updated ) ) { $mod = $user->_yoast_wpseo_profile_updated; } $url = [ 'loc' => $author_link, 'mod' => date( DATE_W3C, $mod ), // Deprecated, kept for backwards data compat. R. 'chf' => 'daily', 'pri' => 1, ]; /** This filter is documented at inc/sitemaps/class-post-type-sitemap-provider.php */ $url = apply_filters( 'wpseo_sitemap_entry', $url, 'user', $user ); if ( ! empty( $url ) ) { $links[] = $url; } } return $links; } /** * Update any users that don't have last profile update timestamp. * * @return int Count of users updated. */ protected function update_user_meta() { $user_criteria = [ 'capability' => [ 'edit_posts' ], 'meta_query' => [ [ 'key' => '_yoast_wpseo_profile_updated', 'compare' => 'NOT EXISTS', ], ], ]; $users = get_users( $user_criteria ); $time = time(); foreach ( $users as $user ) { update_user_meta( $user->ID, '_yoast_wpseo_profile_updated', $time ); } return count( $users ); } /** * Wrap legacy filter to deduplicate calls. * * @param array $users Array of user objects to filter. * * @return array */ protected function exclude_users( $users ) { /** * Filter the authors, included in XML sitemap. * * @param array $users Array of user objects to filter. */ return apply_filters( 'wpseo_sitemap_exclude_author', $users ); } }