
<!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: RESTWPPost.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace WP_Rocket\Engine\CriticalPath;

use WP_Error;

/**
 * Class RESTWPPost
 *
 * @package WP_Rocket\Engine\CriticalPath
 */
class RESTWPPost extends RESTWP {

	/**
	 * Part of route namespace for this inherited class item type.
	 *
	 * @var string $route_namespace to be set with like post, term.
	 */
	protected $route_namespace = &#039;post&#039;;

	/**
	 * Validate the item to be sent to generate CPCSS.
	 *
	 * @since 3.6
	 *
	 * @param int $post_id ID for this post to be validated.
	 *
	 * @return true|WP_Error
	 */
	protected function validate_item_for_generate( $post_id ) {
		$status = get_post_status( $post_id );

		if ( ! $status ) {
			return new WP_Error(
				&#039;post_not_exists&#039;,
				__( &#039;Requested post does not exist.&#039;, &#039;rocket&#039; ),
				[
					&#039;status&#039; =&gt; 400,
				]
			);
		}

		if ( &#039;publish&#039; !== $status ) {
			return new WP_Error(
				&#039;post_not_published&#039;,
				__( &#039;Cannot generate CPCSS for unpublished post.&#039;, &#039;rocket&#039; ),
				[
					&#039;status&#039; =&gt; 400,
				]
			);
		}

		return true;
	}

	/**
	 * Validate the item to be sent to delete CPCSS.
	 *
	 * @since 3.6
	 *
	 * @param int $post_id ID for this post to be validated.
	 *
	 * @return true|WP_Error
	 */
	protected function validate_item_for_delete( $post_id ) {
		if ( empty( get_permalink( $post_id ) ) ) {
			return new WP_Error(
				&#039;post_not_exists&#039;,
				__( &#039;Requested post does not exist.&#039;, &#039;rocket&#039; ),
				[
					&#039;status&#039; =&gt; 400,
				]
			);
		}

		return true;
	}


	/**
	 * Get url for this item.
	 *
	 * @since 3.6
	 *
	 * @param int $post_id ID for this post to be validated.
	 *
	 * @return false|string
	 */
	protected function get_url( $post_id ) {
		return get_permalink( $post_id );
	}

	/**
	 * Get CPCSS file path to save CPCSS code into.
	 *
	 * @since 3.6
	 *
	 * @param int  $post_id   ID for this post to be validated.
	 * @param bool $is_mobile Bool identifier for is_mobile CPCSS generation.
	 *
	 * @return string
	 */
	protected function get_path( $post_id, $is_mobile = false ) {
		$post_type = get_post_type( $post_id );

		return &#039;posts&#039; . DIRECTORY_SEPARATOR . &quot;{$post_type}-{$post_id}&quot; . ( $is_mobile ? &#039;-mobile&#039; : &#039;&#039; ) . &#039;.css&#039;;
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://www.mijikendarealestate.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-property-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-agent-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-ube_content-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-type-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-status-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-feature-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-label-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-state-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-city-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-neighborhood-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-agency-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
