361 $target = '_blank';
362 }
363 // Devolver el medio en un enlace.
364 $media = '<a href="' . esc_html( $img_desc ) . '" target="' . $target . '">' . $media . '</a>';365 }
366 return $media;
367}
348 */
349function ekiline_set_media_link( $img_desc, $img_url, $img_alt, $img_title ) {
350
351 $media = '<img class="carousel-media img-fluid" src="' . esc_url( $img_url ) . '" alt="' . esc_html( $img_alt ) . '" title="' . esc_html( $img_title ) . '" loading="lazy">';352 $target = '_self';
353 // Verificar el texto en el campo, solo debe existir un enlace.
354 $desc_str = explode( ' ', trim( $img_desc ) )[0];
348 */
349function ekiline_set_media_link( $img_desc, $img_url, $img_alt, $img_title ) {
350
351 $media = '<img class="carousel-media img-fluid" src="' . esc_url( $img_url ) . '" alt="' . esc_html( $img_alt ) . '" title="' . esc_html( $img_title ) . '" loading="lazy">';352 $target = '_self';
353 // Verificar el texto en el campo, solo debe existir un enlace.
354 $desc_str = explode( ' ', trim( $img_desc ) )[0];
262 <?php if ( 'false' !== $setlinks && $slide['content'] ) { ?>
263 <?php echo wp_kses_post( ekiline_set_media_link( $slide['content'], $slide['image'], $slide['alt'], $slide['title'] ) ); ?>
264 <?php } else { ?>
265 <img class="carousel-media img-fluid" src="<?php echo esc_url( $slide['image'] ); ?>" alt="<?php echo esc_html( $slide['alt'] ); ?>" title="<?php echo esc_html( $slide['title'] ); ?>" loading="lazy">266 <?php } ?>
267
268 <?php } ?>
262 <?php if ( 'false' !== $setlinks && $slide['content'] ) { ?>
263 <?php echo wp_kses_post( ekiline_set_media_link( $slide['content'], $slide['image'], $slide['alt'], $slide['title'] ) ); ?>
264 <?php } else { ?>
265 <img class="carousel-media img-fluid" src="<?php echo esc_url( $slide['image'] ); ?>" alt="<?php echo esc_html( $slide['alt'] ); ?>" title="<?php echo esc_html( $slide['title'] ); ?>" loading="lazy">266 <?php } ?>
267
268 <?php } ?>
A function has been called, but not defined. This will result in a run time fatal error.
This issue can be raised for any of the following cases:
class User
{
public function getName()
{
$lower = make_string_lowercase('JOHN DOE'); // function doesn't exist
return $lower;
}
}
class Utility
{
public function sanitizeText()
{
$text = htmlSpecialChars("<a href='/about'>About</a>"); // incorrect function case
return $text;
}
}
function make_string_lowercase($str)
{
return strtolower($str);
}
class User
{
public function getName()
{
$lower = make_string_lowercase('JOHN DOE');
return $lower;
}
}
class Utility
{
public function sanitizeText()
{
$text = htmlspecialchars("<a href='/about'>About</a>");
return $text;
}
}