Skip to content

Commit

Permalink
Fix bug concerning wpmail-post-title; it should *not* be set except w…
Browse files Browse the repository at this point in the history
…hen actually initializing a post.
  • Loading branch information
Thomas Kappler committed Nov 15, 2009
1 parent 178bfea commit bfa0489
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wpmail.el
Expand Up @@ -127,10 +127,6 @@ some text around point, if it's not empty and not too long."

;; End helpers ---------------------------------------------

(defvar wpmail-post-title "wpmail.el post"
"The post's title when sending it off.
Will be set by `wpmail-new-post' or `wpmail-new-post-here'.")

(defun wpmail-new-post (title category init-content)
"Start a new wordpress blog post in a new buffer.
The post will have the title TITLE and be in category CATEGORY.
Expand Down Expand Up @@ -283,6 +279,10 @@ Partly copied from Trey Jackson
(expect nil
(with-temp-buffer
(wpmail-post-configured-p)))
(expect nil
(with-temp-buffer
(insert "[status draft]")
(wpmail-post-configured-p)))
(expect (non-nil)
(with-temp-buffer
(set (make-local-variable 'wpmail-post-title) "title")
Expand Down

0 comments on commit bfa0489

Please sign in to comment.