Plugin Directory

Changeset 367282


Ignore:
Timestamp:
03/31/2011 05:39:35 AM (15 years ago)
Author:
jkmassel
Message:

updating to 1.1

Location:
page-excerpt
Files:
1 added
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • page-excerpt/tags/1.1/pageExcerpt.php

    r367281 r367282  
    1010
    1111add_action( 'edit_page_form', 'pe_add_box');
     12add_action('init', 'my_custom_init');
    1213
     14function pe_init() {
     15    if(function_exists("add_post_type_support")) //support 3.1 and greater
     16    {
     17        add_post_type_support( 'page', 'excerpt' );
     18    }
     19}
    1320
    1421function pe_page_excerpt_meta_box($post) {
     
    2229function pe_add_box()
    2330{
    24     add_meta_box('postexcerpt', __('Page Excerpt'), 'pe_page_excerpt_meta_box', 'page', 'advanced', 'core');
     31    if(!function_exists("add_post_type_support")) //legacy
     32    {       add_meta_box('postexcerpt', __('Page Excerpt'), 'pe_page_excerpt_meta_box', 'page', 'advanced', 'core');
     33    }
    2534}
    2635
  • page-excerpt/tags/1.1/readme.txt

    r367281 r367282  
    44Tags: excerpt, page, page excerpt, advanced options, CMS, content management
    55Requires at least: 2.6
    6 Tested up to: 2.8
    7 Stable tag: 1.0
     6Tested up to: 3.1
     7Stable tag: 1.1
    88
    99This plugin adds the same functionality of the excerpt feature in posts to pages.
     
    1111== Description ==
    1212
    13 This plugin adds the same functionality of the excerpt feature in posts to pages. It is
    14 based upon the same code used in WordPress to add the functionality to posts. This one is compatible
    15 with WordPress 2.6+ because it uses newer code than other similar plugins.
     13This plugin adds the same functionality of the excerpt feature in posts to pages.
    1614
    1715
     
    2422
    2523== Changelog ==
     24
     25= 1.1 =
     26* Supports WP 3.1 and greater
    2627
    2728= 1.0 =
  • page-excerpt/trunk/pageExcerpt.php

    r128224 r367282  
    1010
    1111add_action( 'edit_page_form', 'pe_add_box');
     12add_action('init', 'my_custom_init');
    1213
     14function pe_init() {
     15    if(function_exists("add_post_type_support")) //support 3.1 and greater
     16    {
     17        add_post_type_support( 'page', 'excerpt' );
     18    }
     19}
    1320
    1421function pe_page_excerpt_meta_box($post) {
     
    2229function pe_add_box()
    2330{
    24     add_meta_box('postexcerpt', __('Page Excerpt'), 'pe_page_excerpt_meta_box', 'page', 'advanced', 'core');
     31    if(!function_exists("add_post_type_support")) //legacy
     32    {       add_meta_box('postexcerpt', __('Page Excerpt'), 'pe_page_excerpt_meta_box', 'page', 'advanced', 'core');
     33    }
    2534}
    2635
  • page-excerpt/trunk/readme.txt

    r128263 r367282  
    44Tags: excerpt, page, page excerpt, advanced options, CMS, content management
    55Requires at least: 2.6
    6 Tested up to: 2.8
    7 Stable tag: 1.0
     6Tested up to: 3.1
     7Stable tag: 1.1
    88
    99This plugin adds the same functionality of the excerpt feature in posts to pages.
     
    1111== Description ==
    1212
    13 This plugin adds the same functionality of the excerpt feature in posts to pages. It is
    14 based upon the same code used in WordPress to add the functionality to posts. This one is compatible
    15 with WordPress 2.6+ because it uses newer code than other similar plugins.
     13This plugin adds the same functionality of the excerpt feature in posts to pages.
    1614
    1715
     
    2422
    2523== Changelog ==
     24
     25= 1.1 =
     26* Supports WP 3.1 and greater
    2627
    2728= 1.0 =
Note: See TracChangeset for help on using the changeset viewer.