Browse files

Pods 2.0 Alpha 34 - *_*_meta field overrides for fields of WP objects…

… created/extended by Pods
  • Loading branch information...
1 parent a8d7b6f commit c73aadc586203564be91b8b01a696f3b7595a166 @sc0ttkclark sc0ttkclark committed Aug 2, 2012
Showing with 11 additions and 3 deletions.
  1. +8 −0 classes/Pods.php
  2. +2 −2 pods.php
  3. +1 −1 readme.txt
View
8 classes/Pods.php
@@ -435,6 +435,14 @@ public function find ( $params = null, $limit = 15, $where = null, $sql = null )
$params = $this->do_hook( 'find', $params );
+ // Add "`t`." prefix to $orderby if needed
+ if ( !empty( $params->orderby ) && false === strpos( $params->orderby, ',' ) && false === strpos( $params->orderby, '(' ) && false === strpos( $params->orderby, '.' ) ) {
+ if ( false !== strpos( $params->orderby, ' ASC' ) )
+ $params->orderby = '`t`.`' . trim( str_replace( array( '`', ' ASC' ), '', $params->orderby ) ) . '` ASC';
+ else
+ $params->orderby = '`t`.`' . trim( str_replace( array( '`', ' DESC' ), '', $params->orderby ) ) . '` DESC';
+ }
+
$this->data->select( $params );
return $this;
View
4 pods.php
@@ -3,7 +3,7 @@
Plugin Name: Pods Framework
Plugin URI: http://podsframework.org/
Description: Create / Manage / Develop / Extend content types: Posts, Pages, Media, Custom Post Types, Categories, Tags, Custom Taxonomy, Comments, Users, Custom Content Types, and Custom Tables
-Version: 2.0.0 Alpha 33
+Version: 2.0.0 Alpha 34
Author: The Pods Framework Team
Author URI: http://podsframework.org/about/
@@ -29,7 +29,7 @@
return;
}
-define( 'PODS_VERSION', '2.0.0-a-33' );
+define( 'PODS_VERSION', '2.0.0-a-34' );
if ( !defined( 'PODS_WP_VERSION_MINIMUM' ) )
define( 'PODS_WP_VERSION_MINIMUM', '3.4' );
View
2 readme.txt
@@ -5,7 +5,7 @@ Tags: pods, cms, cck, pods ui, ui, content types, custom post types, relationshi
Requires at least: 3.4
Tested up to: 3.4.1
Stable tag: 1.14.2
-~Current Version:2.0.0-a-33~
+~Current Version:2.0.0-a-34~
Pods is a development framework for creating, managing, and deploying customized content types.

0 comments on commit c73aadc

Please sign in to comment.