Skip to content

Commit

Permalink
Merge pull request #16 from voceconnect/callback_warning_fix
Browse files Browse the repository at this point in the history
Callback warning fix
  • Loading branch information
csloisel committed Aug 7, 2015
2 parents 8648564 + e0de3e9 commit c67f9e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Contributors: prettyboymp, klangley, csloisel, markparolisi, jeffstieler
Tags: relationships, mapping, connections, many-to-many
Requires at least: 3.6
Tested up to: 4.2
Stable tag: 1.4.2
Stable tag: 1.4.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down
2 changes: 1 addition & 1 deletion objects-to-objects.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/*
Plugin Name: Objects to Objects
Version: 1.4.2
Version: 1.4.3
Plugin URI: http://voceplatforms.com
Description: A WordPress plugin/module that provides the ability to map relationships between posts and other post types.
Author: Voce Platforms
Expand Down
4 changes: 4 additions & 0 deletions src/query.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ function get_post_id_by_name( $post_name, $post_types ) {

class O2O_Query_Modifier {

public static function posts_results( $posts, $wp_query, $connection, $o2o_query ) {
// Do nothing
}

public static function parse_query( $wp_query, $connection, $o2o_query ) {
//set the post_ids based on the connection
$connected_ids = $o2o_query['direction'] == 'to' ? $connection->get_connected_to_objects( $o2o_query['id'] ) : $connection->get_connected_from_objects( $o2o_query['id'] );
Expand Down

0 comments on commit c67f9e3

Please sign in to comment.