Permalink
Browse files

fixes

  • Loading branch information...
1 parent 510abab commit fad44ac711f3b0ca67b0b82e21c29005f2c04b85 Ricardo Rauch committed May 14, 2012
Showing with 0 additions and 16 deletions.
  1. +0 −16 wp-content/themes/svbtle/kudos.php
@@ -1,16 +0,0 @@
-<?php
-get_header();
-
-$post_id = $_POST['article'];
-$cooking = $_POST['cooking'];
-
-$sql = "SELECT meta_value FROM wp_postmeta WHERE post_id = $post_id AND meta_key = '_wp-svbtle-kudos'";
-
-$kudos = $wpdb->get_var( $wpdb->prepare( $sql ) );
-
-$new_kudos = $kudos + 1;
-
-add_post_meta( $post_id, '_wp-svbtle-kudos', 1, true ) or update_post_meta( $post_id, '_wp-svbtle-kudos', $new_kudos );
-
-header('HTTP/1.1 200 OK');
-?>

0 comments on commit fad44ac

Please sign in to comment.