Plugin Directory

Changeset 617477


Ignore:
Timestamp:
10/25/2012 06:38:07 PM (13 years ago)
Author:
paddelboot
Message:

1.3.2b

Location:
3pagination/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 3pagination/trunk/class.settings.php

    r617476 r617477  
    231231        public function labels_previous() {
    232232
    233             $settings = get_option( '3pagination_settings', TRUE );
     233            $settings = (array) get_option( '3pagination_settings', TRUE );
    234234            ?>
    235235            <input type="text" name="3pagination_settings[labels_previous]" value="<?php echo $this->init_var( $settings, 'labels_previous', '&lsaquo;', TRUE ); ?>" />
     
    244244        public function labels_next() {
    245245
    246             $settings = get_option( '3pagination_settings', TRUE );
     246            $settings = (array) get_option( '3pagination_settings', TRUE );
    247247            ?>
    248248            <input type="text" name="3pagination_settings[labels_next]" value="<?php echo $this->init_var( $settings, 'labels_next', '&rsaquo;', TRUE ); ?>" />
     
    257257        public function labels_first() {
    258258
    259             $settings = get_option( '3pagination_settings', TRUE );
     259            $settings = (array) get_option( '3pagination_settings', TRUE );
    260260            ?>
    261261            <input type="text" name="3pagination_settings[labels_first]" value="<?php echo $this->init_var( $settings, 'labels_first', '&laquo;', TRUE ); ?>" />
     
    270270        public function labels_last() {
    271271
    272             $settings = get_option( '3pagination_settings', TRUE );
     272            $settings = (array) get_option( '3pagination_settings', TRUE );
    273273            ?>
    274274            <input type="text" name="3pagination_settings[labels_last]" value="<?php echo $this->init_var( $settings, 'labels_last', '&raquo;', TRUE ); ?>" />
     
    303303        public function placement_footer() {
    304304
    305             $settings = get_option( '3pagination_settings', TRUE );
     305            $settings = (array) get_option( '3pagination_settings', TRUE );
    306306            ?>
    307307            <input type="checkbox" name="3pagination_settings[placement_footer_index]" <?php checked( $this->init_var( $settings, 'placement_footer_index', FALSE ), 'on' ); ?> />
     
    323323        public function placement_prepend() {
    324324
    325             $settings = get_option( '3pagination_settings', TRUE );
     325            $settings = (array) get_option( '3pagination_settings', TRUE );
    326326            ?>
    327327            <input type="text" name="3pagination_settings[placement_prepend_id]" value="<?php echo $this->init_var( $settings, 'placement_prepend_id', FALSE ); ?>" />         
     
    345345        public function placement_append() {
    346346
    347             $settings = get_option( '3pagination_settings', TRUE );
     347            $settings = (array) get_option( '3pagination_settings', TRUE );
    348348            ?>
    349349            <input type="text" name="3pagination_settings[placement_append_id]" value="<?php echo $this->init_var( $settings, 'placement_append_id', FALSE ); ?>" />           
     
    367367        public function css_class() {
    368368
    369             $settings = get_option( '3pagination_settings', TRUE );
     369            $settings = (array) get_option( '3pagination_settings', TRUE );
    370370            ?>
    371371            <input type="text" name="3pagination_settings[css_class]" value="<?php echo $this->init_var( $settings, 'css_class', 'classic', TRUE ); ?>" />
     
    377377        public function other_maxnumpages() {
    378378
    379             $settings = get_option( '3pagination_settings', TRUE );
     379            $settings = (array) get_option( '3pagination_settings', TRUE );
    380380            ?>
    381381            <input type="text" name="3pagination_settings[other_maxnumpages]" value="<?php echo $this->init_var( $settings, 'other_maxnumpages', '999', TRUE ); ?>" />
     
    387387        public function other_pretty() {
    388388
    389             $settings = get_option( '3pagination_settings', TRUE );
     389            $settings = (array) get_option( '3pagination_settings', TRUE );
    390390            ?>
    391391            <input type="checkbox" name="3pagination_settings[other_pretty]" <?php checked( $this->init_var( $settings, 'other_pretty', 'on' ), 'on' ); ?> />
     
    404404        public function threepagination_validate( $data ) {
    405405
    406             $settings = get_option( '3pagination_settings' );
     406            $settings = (array) get_option( '3pagination_settings' );
    407407
    408408            $settings[ 'labels_show' ] = esc_attr( $data[ 'labels_show' ] );
  • 3pagination/trunk/readme.txt

    r566573 r617477  
    44Requires at least: 3.3.2
    55Tested up to: 3.4.1
    6 Stable tag: 1.3.1b
     6Stable tag: 1.3.2b
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    103103- New function parameter $wp_query : support for custom query object
    104104
     105= 1.3.2b =
     106- Fixed error message in options screen after fresh install
     107
    105108== A brief Markdown Example ==
    106109`<?php if ( class_exists( 'threepagination' ) ) : threepagination::draw(); endif; ?>`
Note: See TracChangeset for help on using the changeset viewer.