WordPress.org

Plugin Directory

Changeset 512187


Ignore:
Timestamp:
02/29/12 09:01:51 (2 years ago)
Author:
studiograsshopper
Message:

Fixes More link issue for Manual Description (code was ignoring the value of the Append More link to manual descriptions checkbox)

Location:
dynamic-content-gallery-plugin/trunk/lib/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dynamic-content-gallery-plugin/trunk/lib/includes/dcg-gallery-content-limit.php

    r511996 r512187  
    3333 * 
    3434 * Note that when dealing with non-Loop/WP_Query, ie when using the custom db query in the ID Method, we don't have access 
    35  * to $post object, so get_the_content() and get_permalink() will not work as expected. Hence the extra $content and $page_id 
    36  * arguments for passing the Page content and ID to this function. 
     35 * to $post object, so get_the_content() and get_permalink() will not work as expected. Hence the extra $content and $id 
     36 * arguments for passing the ID Method content and ID to this function. 
    3737 * 
    3838 * @since 3.1 
     
    8686     
    8787    } else { 
    88         // We have More link and page id, ie we're in Pages Method 
     88        // We have More link and page id, ie we're in ID Method 
    8989        $link = sprintf( '%s <a href="%s" rel="nofollow">%s</a>', $sep, get_permalink($id), $more_link_text ); 
    9090    } 
  • dynamic-content-gallery-plugin/trunk/lib/includes/dcg-gallery-core.php

    r511996 r512187  
    682682     
    683683        // Do we append Read More to manual descriptions? 
    684         if( $dfcg_options['desc-man-link'] ) { 
     684        if( $dfcg_options['desc-man-link'] == 'true' ) { 
    685685            $more = '&nbsp;<a href="'.get_permalink( $id ).'">' . $dfcg_options['more-text'] . '</a>'; 
    686686        } else { 
Note: See TracChangeset for help on using the changeset viewer.