title: Ajax success message returns HTML of my homepage
body: <p>Using ajax and wordpress (trying to do it properly). It is rather new to me but I had this working before with more flair. Seemingly-randomly started having issues so I broke my code down to the most basic level, and I can't even get that to work!!! I feel like i'm just getting frustrated and it's forcing me to miss a simple mistake. Is there anything wrong with this?</p>
  
  <p>My jQuery:</p>
  
  <pre><code>$.post(
      ajaxurl, // http://localhost/mysite/wp-admin/admin-ajax.php
      {action: "post-save"},
      function(response){
        alert(response);
      }
  );
  </code></pre>
  
  <p>My PHP:</p>
  
  <pre><code>function update_post(){
      echo json_encode(array("success" =&gt; "all systems go"), JSON_FORCE_OBJECT ); 
      exit;
  }
  add_action( 'wp_ajax_post-save', 'update_post' );
  </code></pre>
  
  <p>The end result is the alert works, which means $.post is successful (right?), but the returned variable <code>response</code> is the html source of my homepage...</p>