HUPHU`$GUEUpHUPpDU<`;GUP2DU<IUpP2HUp{@EU+wEU DHUP(pDU<DUEUPtDU<@EUlGU0EU0P8pHUPPHpDU@<`;GU@P2DUP<IUPGUpEUpXREUppIUPPBIU``BDU<IU HU+GUEUREUpwEUDHUPpDU<`;GUP2IUp`BIUpB`4EUPt 2IU`GEUtDU<`;GUP2DU<DU>`*B0*Bpo(Bo(B8AApo(Bo(B*B _(BH_(Bpo(Bo(BЅ*B t*B t*BABB B*Bpo(Bo(B pU:(BP*B*BX*BP p0DUPS?HU`SHUp$SHUDSHUdSHUSHUSHUT.HUP`TpDUT<IUpTEUT4@EU@T+DUU>HU`X.HU`YEUY4EUY.GUZEUP  ZREU @8ZpHU`@HZpDU0Z<`;GU0PZ2HUPXZpDU@Z<`;GU@`Z2DUPZ<EUPZ4@EU@Z+DU`\>PGU`_@EU`@_+DUa>pHUpddEUpdEUd.DUhdEGUeEUpeREUepIUPPeBDUe<`;GUPe2IU`eBPDUddEUedEUeEUe4EUe>DU`h>PA A@B^BX(Bؙ(B(BAAAA(B((BAxAhEBEB@(B 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 ); } }