Make WordPress Core

Ticket #26961: ephemera_widget_continue_unified.diff

File ephemera_widget_continue_unified.diff, 939 bytes (added by mor10, 11 years ago)

Patch fixes issue described by way of recommended override code as per http://codex.wordpress.org/Function_Reference/the_content#Overriding_Archive.2FSingle_Page_Behavior

  • src/wp-content/themes/twentyfourteen/inc/widgets.php

     
    7171         * @return void Echoes its output.
    7272         */
    7373        public function widget( $args, $instance ) {
     74                global $more;
    7475                $format = $instance['format'];
    7576                $number = empty( $instance['number'] ) ? 2 : absint( $instance['number'] );
    7677                $title  = apply_filters( 'widget_title', empty( $instance['title'] ) ? $this->format_strings[ $format ] : $instance['title'], $instance, $this->id_base );
     
    155156                                                                endif;
    156157
    157158                                                        else :
     159                                                                $more = 0; // Forces Continue reading link on single posts and pages
    158160                                                                the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
    159161                                                        endif;
    160162                                                ?>