Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pereirinha committed Dec 3, 2024
1 parent 0b60d9a commit 87dc277
Show file tree
Hide file tree
Showing 40 changed files with 76 additions and 67 deletions.
2 changes: 1 addition & 1 deletion docs/cloudinary_allowed_extensions.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1582">line 1582</a>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1588">line 1588</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_apply_breakpoints.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1262">line 1262</a>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1268">line 1268</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_apply_default_transformations.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1241">line 1241</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1235">line 1235</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_asset_payload.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2273">line 2273</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2267">line 2267</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_bypass_seo_url.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1225">line 1225</a>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1231">line 1231</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_connected.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-plugin.php.html">php/class-plugin.php</a>, <a href="php_class-plugin.php.html#line216">line 216</a>
<a href="php_class-plugin.php.html">php/class-plugin.php</a>, <a href="php_class-plugin.php.html#line207">line 207</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_content_url.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1645">line 1645</a>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1651">line 1651</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_context_options.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2829">line 2829</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2823">line 2823</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_converted_url.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1457">line 1457</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1451">line 1451</a>
</li></ul></dd>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1286">line 1286</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1280">line 1280</a>
</li></ul></dd>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1270">line 1270</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1264">line 1264</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_default_transformations.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1317">line 1317</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1311">line 1311</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_delivery_searchable_url.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1664">line 1664</a>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1670">line 1670</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_doing_upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1189">line 1189</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1183">line 1183</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_download_asset.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2391">line 2391</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2385">line 2385</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_edit_asset_permalink.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1209">line 1209</a>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1215">line 1215</a>
</li></ul></dd>


Expand Down
4 changes: 2 additions & 2 deletions docs/cloudinary_enable_crop_and_gravity_control.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1335">line 1335</a>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1341">line 1341</a>
</li></ul></dd>


Expand Down Expand Up @@ -310,7 +310,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1033">line 1033</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1027">line 1027</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_filter_out_local.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line3037">line 3037</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line3031">line 3031</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_id.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1789">line 1789</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1783">line 1783</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_init_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-plugin.php.html">php/class-plugin.php</a>, <a href="php_class-plugin.php.html#line226">line 226</a>
<a href="php_class-plugin.php.html">php/class-plugin.php</a>, <a href="php_class-plugin.php.html#line217">line 217</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_is_content_dir.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1550">line 1550</a>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1556">line 1556</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_is_folder_synced.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2864">line 2864</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2858">line 2858</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_is_uploadable_media.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line428">line 428</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line422">line 422</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_local_url.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1504">line 1504</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1498">line 1498</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_max_files_import.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2067">line 2067</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2061">line 2061</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_migrate_legacy_meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2603">line 2603</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2597">line 2597</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_parse_element.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1487">line 1487</a>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1493">line 1493</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_prepare_size.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1616">line 1616</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1610">line 1610</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_preview_types.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line571">line 571</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line565">line 565</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_raw_url.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1559">line 1559</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1553">line 1553</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_ready.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-plugin.php.html">php/class-plugin.php</a>, <a href="php_class-plugin.php.html#line449">line 449</a>
<a href="php_class-plugin.php.html">php/class-plugin.php</a>, <a href="php_class-plugin.php.html#line458">line 458</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_resource_type.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line637">line 637</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line631">line 631</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_set_usable_asset.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1633">line 1633</a>
<a href="php_class-delivery.php.html">php/class-delivery.php</a>, <a href="php_class-delivery.php.html#line1639">line 1639</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_transformations.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line992">line 992</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line986">line 986</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_upload_options.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2904">line 2904</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line2898">line 2898</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/cloudinary_validate_cloudinary_id.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1777">line 1777</a>
<a href="php_class-media.php.html">php/class-media.php</a>, <a href="php_class-media.php.html#line1771">line 1771</a>
</li></ul></dd>


Expand Down
8 changes: 7 additions & 1 deletion docs/php_class-delivery.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,13 @@ <h1 class="page-title">Source: php/class-delivery.php</h1>
$aliases[ $local_url ] = $cached[ $local_url ];
continue;
}
$cloudinary_url = $this->media->cloudinary_url( $relation['post_id'], explode( 'x', $size ), $relation['transformations'], $public_id );

$cloudinary_url = $this->media->cloudinary_url( $relation['post_id'], explode( 'x', $size ), $relation['transformations'], $public_id );
// The asset is not ready. Carry on.
if ( empty( $cloudinary_url ) ) {
continue;
}

$aliases[ $local_url . '?' ] = $cloudinary_url . '&amp;';
$aliases[ $local_url ] = $cloudinary_url;

Expand Down
20 changes: 7 additions & 13 deletions docs/php_class-media.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -402,22 +402,16 @@ <h1 class="page-title">Source: php/class-media.php</h1>
if ( ! filter_var( $url, FILTER_VALIDATE_URL ) ) {
return false;
}
// phpcs:disable WordPress.WP.AlternativeFunctions
$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_NOBODY, true );
curl_exec( $ch );
$code = curl_getinfo( $ch, CURLINFO_HTTP_CODE );

if ( 200 === $code ) {
$status = true;
} else {
$status = false;

$head = wp_safe_remote_head( $url );

if ( is_wp_error( $head ) ) {
return false;
}

curl_close( $ch );
// phpcs:enable
$code = wp_remote_retrieve_response_code( $head );

return $status;
return 200 === $code;
}

/**
Expand Down
Loading

0 comments on commit 87dc277

Please sign in to comment.