Plugin Directory

Changeset 2846366

Timestamp:
01/10/2023 08:10:21 PM (19 months ago)
Author:
husobj
Message:

Version 1.7.5

Location:
list-pages-shortcode/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • list-pages-shortcode/trunk/list-pages-shortcode.php

    r1358037 r2846366  
    66Description: Introduces the [list-pages], [sibling-pages] and [child-pages] <a href="http://codex.wordpress.org/Shortcode_API">shortcodes</a> for easily displaying a list of pages within a post or page.  Both shortcodes accept all parameters that you can pass to the <a href="http://codex.wordpress.org/Template_Tags/wp_list_pages">wp_list_pages()</a> function.  For example, to show a page's child pages sorted by title simply add [child-pages sort_column="post_title"] in the page's content.
    77Author: Ben Huson, Aaron Harp
    8 Version: 1.7.4
     8Version: 1.7.
    99Author URI: http://www.aaronharp.com
    1010*/
     
    8181        $atts = apply_filters( 'shortcode_list_pages_attributes', $atts, $content, $tag );
    8282
     83
     84
     85
    8386        // Catch <ul> tags in wp_list_pages()
    8487        $atts['list_type'] = self::validate_list_type( $atts['list_type'] );
     
    9598        remove_filter( 'wp_list_pages', array( 'List_Pages_Shortcode', 'ul2list_type' ), 10 );
    9699        if ( ! empty( $out ) && ! empty( $atts['list_type'] ) ) {
    97             $out = '<' . $atts['list_type'] . ' class="' . $atts['class'] . '">' . $out . '</' . $atts['list_type'] . '>';
     100            $out = '<' . $atts['list_type'] . ' class="' . . '">' . $out . '</' . $atts['list_type'] . '>';
    98101        }
    99102        $out = apply_filters( 'shortcode_list_pages', $out, $atts, $content, $tag );
     
    144147    static function excerpt_filter( $text ) {
    145148        if ( ! empty( $text ) ) {
    146             return ' <div class="excerpt">' . $text . '</div>';
     149            return ' <div class="excerpt">' . . '</div>';
    147150        }
    148151        return $text;
  • list-pages-shortcode/trunk/readme.txt

    r2185982 r2846366  
    44Tags: shortcodes, pages, list pages, sibling pages, child pages, subpages
    55Requires at least: 3.5
    6 Tested up to: 5.2
    7 Stable tag: 1.7.4
     6Tested up to:
     7Stable tag: 1.7.
    88License: GPLv2 or later
    99
     
    7070
    7171== Changelog ==
     72
     73
     74
     75
    7276
    7377= 1.7.4 =
     
    136140== Upgrade Notice ==
    137141
     142
     143
     144
     145
    138146= 1.7.2 =
    139147Add short code arguments to the shortcode_list_pages_before/after actions.
Note: See TracChangeset for help on using the changeset viewer.