• Resolved Ludwig C.

    (@ludwig-c)


    When enabling debug mode in WP I get the following notices:
    Notice: Undefined variable: post_title in /app/web/wp-content/plugins/ultimate-responsive-image-slider/layout.php on line 332

    Seems to be related to:
    Error on testing site, undefined

    I fixed it by moving the assignment of $post_title outside of the if condition.

    
    ---
     .../plugins/ultimate-responsive-image-slider/layout.php       | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/web/wp-content/plugins/ultimate-responsive-image-slider/layout.php b/web/wp-content/plugins/ultimate-responsive-image-slider/layout.php
    index 2bcfeb6..b9af0cd 100644
    --- a/web/wp-content/plugins/ultimate-responsive-image-slider/layout.php
    +++ b/web/wp-content/plugins/ultimate-responsive-image-slider/layout.php
    @@ -224,8 +224,10 @@ document.addEventListener("DOMContentLoaded", function(event) {
     /* Custom CSS */
     <?php echo $WRIS_L3_Custom_CSS; ?>
     </style>
    +<?php $post_title = get_the_title( $post_id );?>
     <?php  if($WRIS_L3_Slide_Title) { ?>
    -<h3 class="uris-slider-post-title"><?php echo $post_title = get_the_title( $post_id ); ?></h3>
    +
    +<h3 class="uris-slider-post-title"><?php echo $post_title; ?></h3>
     <?php } if($TotalSlideIds>0){ ?>
     		<div id="slider-pro-3-<?php echo $post_id; ?>" class="slider-pro">
     			<!---- slides div start ---->
    -- 
    
Viewing 1 replies (of 1 total)
  • Plugin Author FARAZFRANK

    (@farazfrank)

    Really sorry for the delay in reply.

    Thanks for this valuable feedback, I will fix this bug in the next update.

    You can also ping me I forgot.

    Rate here, my work if you like.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Error: Undefined variable: post_title’ is closed to new replies.