Skip to content

Commit

Permalink
Fix wording in Upgrade Guide
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed May 20, 2023
1 parent fe2c2bc commit f88c413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/v2/upgrade-guides/2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ The following functions and properties were **removed from the codebase**, eithe
- `get_url()` – use `{{ image.src }}` instead
- `url()` – use `{{ image.src }}` instead
- `$caption` property – use `caption()` method instead. You can still use `{{ image.caption }}` in Twig. In PHP `$image->caption` also still works because magic properties will automatically resolve to `$image->caption()`.
- `is_image()` – without replacement. Timber now checks whether a post is an image if you use `Timber::get_post()` or `Timber::get_image()` and only returns an `Timber\Image` an object for attachments that are images.
- `is_image()` – without replacement. Timber now checks whether a post is an image if you use `Timber::get_post()` or `Timber::get_image()` and only returns a `Timber\Image` object for attachments that are images.

### Timber\MenuItem

Expand Down

0 comments on commit f88c413

Please sign in to comment.