WordPress.org

Plugin Directory

Changeset 636053


Ignore:
Timestamp:
12/09/12 08:34:11 (17 months ago)
Author:
coffee2code
Message:
  • Update to v1.2.5
  • Cast limit as absolute integer rather than just an integer to disallow negative limits
  • Add check to prevent execution of code if file is directly accessed
  • Note compatibility through WP 3.5+
  • Update copyright date (2013)
  • Minor code reformatting (spacing)
Location:
list-more-custom-field-names
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • list-more-custom-field-names/tags/1.2.5/list-more-custom-field-names.php

    r552734 r636053  
    33 * @package List_More_Custom_Field_Names 
    44 * @author Scott Reilly 
    5  * @version 1.2.4 
     5 * @version 1.2.5 
    66 */ 
    77/* 
    88Plugin Name: List More Custom Field Names 
    9 Version: 1.2.4 
     9Version: 1.2.5 
    1010Plugin URI: http://coffee2code.com/wp-plugins/list-more-custom-field-names/ 
    1111Author: Scott Reilly 
     
    1515Description: Allows for more existing custom field names to be listed in the dropdown selection field when writing a post. 
    1616 
    17 Compatible with WordPress 2.6 through 3.4+. 
     17Compatible with WordPress 2.6 through 3.5+. 
    1818 
    1919=>> Read the accompanying readme.txt file for instructions and documentation. 
     
    2929 
    3030/* 
    31     Copyright (c) 2009-2012 by Scott Reilly (aka coffee2code) 
     31    Copyright (c) 2009-2013 by Scott Reilly (aka coffee2code) 
    3232 
    3333    This program is free software; you can redistribute it and/or 
     
    4646*/ 
    4747 
     48if ( ! defined( 'ABSPATH' ) ) 
     49    die(); 
     50 
    4851if ( ! function_exists( 'c2c_list_more_custom_field_names' ) ): 
     52 
    4953    /** 
    5054     * Allows customization of the number of custom field names to list in the 
     
    5963        else 
    6064            $limit = apply_filters( 'c2c_list_more_custom_field_names', 200 ); 
    61         return (int) $limit; 
     65        return absint( $limit ); 
    6266    } 
    6367    add_filter( 'postmeta_form_limit', 'c2c_list_more_custom_field_names' ); 
     68 
    6469endif; 
  • list-more-custom-field-names/tags/1.2.5/readme.txt

    r552734 r636053  
    66License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    77Requires at least: 2.6 
    8 Tested up to: 3.4 
    9 Stable tag: 1.2.4 
    10 Version: 1.2.4 
     8Tested up to: 3.5 
     9Stable tag: 1.2.5 
     10Version: 1.2.5 
    1111 
    1212Allows for more existing custom field names to be listed in the dropdown selection field when writing a post. 
     
    6363== Changelog == 
    6464 
     65= 1.2.5 = 
     66* Cast limit as absolute integer rather than just an integer to disallow negative limits 
     67* Add check to prevent execution of code if file is directly accessed 
     68* Note compatibility through WP 3.5+ 
     69* Update copyright date (2013) 
     70* Minor code reformatting (spacing) 
     71 
    6572= 1.2.4 = 
    6673* Re-license as GPLv2 or later (from X11) 
     
    106113== Upgrade Notice == 
    107114 
     115= 1.2.5 = 
     116Trivial update: noted compatibility through WP 3.5+ 
     117 
    108118= 1.2.4 = 
    109119Trivial update: noted compatibility through WP 3.4+; explicitly stated license 
  • list-more-custom-field-names/trunk/list-more-custom-field-names.php

    r552734 r636053  
    33 * @package List_More_Custom_Field_Names 
    44 * @author Scott Reilly 
    5  * @version 1.2.4 
     5 * @version 1.2.5 
    66 */ 
    77/* 
    88Plugin Name: List More Custom Field Names 
    9 Version: 1.2.4 
     9Version: 1.2.5 
    1010Plugin URI: http://coffee2code.com/wp-plugins/list-more-custom-field-names/ 
    1111Author: Scott Reilly 
     
    1515Description: Allows for more existing custom field names to be listed in the dropdown selection field when writing a post. 
    1616 
    17 Compatible with WordPress 2.6 through 3.4+. 
     17Compatible with WordPress 2.6 through 3.5+. 
    1818 
    1919=>> Read the accompanying readme.txt file for instructions and documentation. 
     
    2929 
    3030/* 
    31     Copyright (c) 2009-2012 by Scott Reilly (aka coffee2code) 
     31    Copyright (c) 2009-2013 by Scott Reilly (aka coffee2code) 
    3232 
    3333    This program is free software; you can redistribute it and/or 
     
    4646*/ 
    4747 
     48if ( ! defined( 'ABSPATH' ) ) 
     49    die(); 
     50 
    4851if ( ! function_exists( 'c2c_list_more_custom_field_names' ) ): 
     52 
    4953    /** 
    5054     * Allows customization of the number of custom field names to list in the 
     
    5963        else 
    6064            $limit = apply_filters( 'c2c_list_more_custom_field_names', 200 ); 
    61         return (int) $limit; 
     65        return absint( $limit ); 
    6266    } 
    6367    add_filter( 'postmeta_form_limit', 'c2c_list_more_custom_field_names' ); 
     68 
    6469endif; 
  • list-more-custom-field-names/trunk/readme.txt

    r552734 r636053  
    66License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    77Requires at least: 2.6 
    8 Tested up to: 3.4 
    9 Stable tag: 1.2.4 
    10 Version: 1.2.4 
     8Tested up to: 3.5 
     9Stable tag: 1.2.5 
     10Version: 1.2.5 
    1111 
    1212Allows for more existing custom field names to be listed in the dropdown selection field when writing a post. 
     
    6363== Changelog == 
    6464 
     65= 1.2.5 = 
     66* Cast limit as absolute integer rather than just an integer to disallow negative limits 
     67* Add check to prevent execution of code if file is directly accessed 
     68* Note compatibility through WP 3.5+ 
     69* Update copyright date (2013) 
     70* Minor code reformatting (spacing) 
     71 
    6572= 1.2.4 = 
    6673* Re-license as GPLv2 or later (from X11) 
     
    106113== Upgrade Notice == 
    107114 
     115= 1.2.5 = 
     116Trivial update: noted compatibility through WP 3.5+ 
     117 
    108118= 1.2.4 = 
    109119Trivial update: noted compatibility through WP 3.4+; explicitly stated license 
Note: See TracChangeset for help on using the changeset viewer.