WordPress.org

Plugin Directory

Changeset 613917


Ignore:
Timestamp:
10/18/12 03:40:15 (18 months ago)
Author:
sc0ttkclark
Message:

Quick hot fixes for Pods 2.0.4.1

Location:
pods
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • pods/tags/2.0.4.1/classes/Pods.php

    r613879 r613917  
    14411441     * are used only for the paginate view. 
    14421442     * 
    1443      * @var array $params Associative array of parameteres 
    1444      * 
    1445      * @return bool|mixed 
     1443     * @var array $params Associative array of parameters 
     1444     * 
     1445     * @return string Pagination HTML 
    14461446     * @since 2.0.0 
    14471447     * @link http://podsframework.org/docs/pagination/ 
     
    14591459            'label' => __( 'Go to page:', 'pods' ), 
    14601460            'show_label' => true, 
     1461            'first_text' => __( '« First', 'pods' ), 
     1462            'prev_text' => __( '‹ Previous', 'pods' ), 
    14611463            'next_text' => __( 'Next ›', 'pods' ), 
    1462             'prev_text' => __( '‹ Previous', 'pods' ), 
    1463             'first_text' => __( '« First', 'pods' ), 
    14641464            'last_text' => __( 'Last »', 'pods' ), 
    14651465            'prev_next' => true, 
     
    15021502 
    15031503    /** 
    1504      * Display the list filters 
     1504     * Output a filter form for searching a Pod 
     1505     * 
     1506     * @var array|string $params Comma-separated list of fields or array of parameters 
    15051507     * 
    15061508     * @since 2.0.0 
  • pods/tags/2.0.4.1/classes/PodsAPI.php

    r613879 r613917  
    23102310                // Prepare all table (non-relational) data 
    23112311                if ( !in_array( $type, $tableless_field_types ) || $simple ) { 
    2312                     $table_data[ $field ] = $value; 
     2312                    $table_data[ $field ] = str_replace( array( '{prefix}', '@wp_' ), array( '{/prefix/}', '{prefix}' ), $value ); // Fix for pods_query 
    23132313                    $table_formats[] = PodsForm::prepare( $type, $options ); 
    23142314 
  • pods/tags/2.0.4.1/classes/PodsUI.php

    r613879 r613917  
    765765        $options->validate( 'label', array( 
    766766            'add' => __( 'Save New', 'pods' ) . " {$options->item}", 
     767            'add_new' => __( 'Add New', 'pods' ) . " {$options->item}", 
    767768            'edit' => __( 'Save', 'pods' ) . " {$options->item}", 
    768769            'duplicate' => __( 'Save New', 'pods' ) . " {$options->item}", 
     
    16621663            if ( !in_array( 'add', $this->actions_disabled ) && !in_array( 'add', $this->actions_hidden ) ) { 
    16631664                ?> 
    1664                 <a href="<?php echo pods_var_update( array( 'action' . $this->num => 'add' ), array( 'page' ), $this->exclusion() ); ?>" class="add-new-h2"><?php echo $this->label[ 'add' ]; ?></a> 
     1665                <a href="<?php echo pods_var_update( array( 'action' . $this->num => 'add' ), array( 'page' ), $this->exclusion() ); ?>" class="add-new-h2"><?php echo $this->label[ 'add_new' ]; ?></a> 
    16651666                <?php 
    16661667            } 
  • pods/tags/2.0.4.1/functions.php

    r613879 r613917  
    44 */ 
    55/** 
    6  * Standardize queries and error reporting 
     6 * Standardize queries and error reporting. It replaces @wp_ with $wpdb->prefix. 
    77 * 
    88 * @see PodsData::query 
    99 * 
    10  * @param $sql 
     10 * @param string $sql SQL Query 
    1111 * @param string $error (optional) The failure message 
    1212 * @param string $results_error (optional) Throw an error if a records are found 
  • pods/tags/2.0.4.1/ui/fields/cleditor.php

    r602158 r613917  
    88$attributes = PodsForm::merge_attributes( $attributes, $name, PodsForm::$field_type, $options, 'pods-ui-field-cleditor' ); 
    99?> 
    10 <textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_html( $value ); ?></textarea> 
     10<textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_textarea( $value ); ?></textarea> 
    1111<script> 
    1212    jQuery( function ( $ ) { 
  • pods/tags/2.0.4.1/ui/fields/codemirror.php

    r605009 r613917  
    1010?> 
    1111<div class="code-toolbar"><!-- Placeholder --></div> 
    12 <textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_attr( $value ); ?></textarea> 
     12<textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_textarea( $value ); ?></textarea> 
    1313<div class="code-footer"><!-- Placeholder --></div> 
    1414 
  • pods/tags/2.0.4.1/ui/fields/textarea.php

    r602158 r613917  
    55$attributes = PodsForm::merge_attributes( $attributes, $name, PodsForm::$field_type, $options ); 
    66?> 
    7 <textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_html( $value ); ?></textarea> 
     7<textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_textarea( $value ); ?></textarea> 
    88<?php 
    99PodsForm::regex( PodsForm::$field_type, $options ); 
  • pods/trunk/classes/Pods.php

    r612995 r613917  
    14411441     * are used only for the paginate view. 
    14421442     * 
    1443      * @var array $params Associative array of parameteres 
    1444      * 
    1445      * @return bool|mixed 
     1443     * @var array $params Associative array of parameters 
     1444     * 
     1445     * @return string Pagination HTML 
    14461446     * @since 2.0.0 
    14471447     * @link http://podsframework.org/docs/pagination/ 
     
    14591459            'label' => __( 'Go to page:', 'pods' ), 
    14601460            'show_label' => true, 
     1461            'first_text' => __( '&laquo; First', 'pods' ), 
     1462            'prev_text' => __( '&lsaquo; Previous', 'pods' ), 
    14611463            'next_text' => __( 'Next &rsaquo;', 'pods' ), 
    1462             'prev_text' => __( '&lsaquo; Previous', 'pods' ), 
    1463             'first_text' => __( '&laquo; First', 'pods' ), 
    14641464            'last_text' => __( 'Last &raquo;', 'pods' ), 
    14651465            'prev_next' => true, 
     
    15021502 
    15031503    /** 
    1504      * Display the list filters 
     1504     * Output a filter form for searching a Pod 
     1505     * 
     1506     * @var array|string $params Comma-separated list of fields or array of parameters 
    15051507     * 
    15061508     * @since 2.0.0 
  • pods/trunk/classes/PodsAPI.php

    r613878 r613917  
    23102310                // Prepare all table (non-relational) data 
    23112311                if ( !in_array( $type, $tableless_field_types ) || $simple ) { 
    2312                     $table_data[ $field ] = $value; 
     2312                    $table_data[ $field ] = str_replace( array( '{prefix}', '@wp_' ), array( '{/prefix/}', '{prefix}' ), $value ); // Fix for pods_query 
    23132313                    $table_formats[] = PodsForm::prepare( $type, $options ); 
    23142314 
  • pods/trunk/classes/PodsUI.php

    r613878 r613917  
    765765        $options->validate( 'label', array( 
    766766            'add' => __( 'Save New', 'pods' ) . " {$options->item}", 
     767            'add_new' => __( 'Add New', 'pods' ) . " {$options->item}", 
    767768            'edit' => __( 'Save', 'pods' ) . " {$options->item}", 
    768769            'duplicate' => __( 'Save New', 'pods' ) . " {$options->item}", 
     
    16621663            if ( !in_array( 'add', $this->actions_disabled ) && !in_array( 'add', $this->actions_hidden ) ) { 
    16631664                ?> 
    1664                 <a href="<?php echo pods_var_update( array( 'action' . $this->num => 'add' ), array( 'page' ), $this->exclusion() ); ?>" class="add-new-h2"><?php echo $this->label[ 'add' ]; ?></a> 
     1665                <a href="<?php echo pods_var_update( array( 'action' . $this->num => 'add' ), array( 'page' ), $this->exclusion() ); ?>" class="add-new-h2"><?php echo $this->label[ 'add_new' ]; ?></a> 
    16651666                <?php 
    16661667            } 
  • pods/trunk/functions.php

    r613878 r613917  
    44 */ 
    55/** 
    6  * Standardize queries and error reporting 
     6 * Standardize queries and error reporting. It replaces @wp_ with $wpdb->prefix. 
    77 * 
    88 * @see PodsData::query 
    99 * 
    10  * @param $sql 
     10 * @param string $sql SQL Query 
    1111 * @param string $error (optional) The failure message 
    1212 * @param string $results_error (optional) Throw an error if a records are found 
  • pods/trunk/ui/fields/cleditor.php

    r602158 r613917  
    88$attributes = PodsForm::merge_attributes( $attributes, $name, PodsForm::$field_type, $options, 'pods-ui-field-cleditor' ); 
    99?> 
    10 <textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_html( $value ); ?></textarea> 
     10<textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_textarea( $value ); ?></textarea> 
    1111<script> 
    1212    jQuery( function ( $ ) { 
  • pods/trunk/ui/fields/codemirror.php

    r605009 r613917  
    1010?> 
    1111<div class="code-toolbar"><!-- Placeholder --></div> 
    12 <textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_attr( $value ); ?></textarea> 
     12<textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_textarea( $value ); ?></textarea> 
    1313<div class="code-footer"><!-- Placeholder --></div> 
    1414 
  • pods/trunk/ui/fields/textarea.php

    r602158 r613917  
    55$attributes = PodsForm::merge_attributes( $attributes, $name, PodsForm::$field_type, $options ); 
    66?> 
    7 <textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_html( $value ); ?></textarea> 
     7<textarea<?php PodsForm::attributes( $attributes, $name, PodsForm::$field_type, $options ); ?>><?php echo esc_textarea( $value ); ?></textarea> 
    88<?php 
    99PodsForm::regex( PodsForm::$field_type, $options ); 
Note: See TracChangeset for help on using the changeset viewer.