Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New secure endpoints to obtain products and custom items and dooplugins update on save #224

Merged
merged 49 commits into from
Nov 30, 2023

Conversation

vferrero
Copy link
Contributor

@vferrero vferrero commented Nov 3, 2023

In this release we have the following changes:

  • New securitized endpoints to get all the items in the store.
  • Changed update on save flow to use dooplugins
  • Fix thumbnail generation

@vferrero vferrero changed the title New secure endpoints to obtain products and custom items New secure endpoints to obtain products and custom items and update on save Nov 22, 2023
@vferrero vferrero changed the title New secure endpoints to obtain products and custom items and update on save New secure endpoints to obtain products and custom items and dooplugins update on save Nov 22, 2023
- Fix thumbnails autogenerate
- New param at instalation plugin
Comment on lines 55 to 57
$img_ori = wp_get_attachment_image_src($thumbnail_id, "full");
$img_original["w"] = $img_ori[1] ?? 0;
$img_original["h"] = $img_ori[2] ?? 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quizás sacaría esto a otra función igual que tienes la de get_thumbnail_size que fuera get_image_size para que al leer la función se entienda mejor lo que se está queriendo comparar... pero es sólo una sugerencia!

* @param string $thumbnail_id Thumb ID por check
* @return string URL of Thumb or false
*/
private function check_size_image_url($thumbnail_id){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quizás en vez de check_size_image_url podríai ser get_image_url_by_size ? se me hace raro que sea check pero después devuelva un string o un falso..

@vferrero vferrero merged commit 1cb3322 into master Nov 30, 2023
2 checks passed
@vferrero vferrero deleted the vferrero/pluginrangers/refactor-cleanning-api-fields branch November 30, 2023 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New secure endpoints to obtain products and custom items
4 participants