We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5900a08 commit 13e893eCopy full SHA for 13e893e
php/class-media.php
@@ -769,6 +769,9 @@ function ( $part ) {
769
* @return array The array of found transformations within the string.
770
*/
771
public function get_transformations_from_string( $str, $type = 'image' ) {
772
+ if ( ! isset( Api::$transformation_index[ $type ] ) ) {
773
+ return array();
774
+ }
775
776
$params = Api::$transformation_index[ $type ];
777
0 commit comments