Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
bpiwowar committed Apr 20, 2011
1 parent 47698cb commit 9def8e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions papercite.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: papercite
Plugin URI: http://www.bpiwowar.net/papercite
Description: papercite enables to add BibTeX entries formatted as HTML in wordpress pages and posts. The input data is the bibtex text file and the output is HTML.
Version: 0.3.10
Version: 0.3.11
Author: Benjamin Piwowarski
Author URI: http://www.bpiwowar.net
*/
Expand Down Expand Up @@ -122,11 +122,11 @@ function init() {
$pOptions = &get_option('papercite_options');

foreach(self::$option_names as &$name) {
if ($this->options)
if (array_key_exists($name, $pOptions) && sizeof($pOptions[$name]) > 0) {
$this->options[$name] = $pOptions[$name];
}
if (is_array($pOptions) && array_key_exists($name, $pOptions) && sizeof($pOptions[$name]) > 0) {
$this->options[$name] = $pOptions[$name];
}

// Now, use custom field
$custom_field = get_post_custom_values("papercite_$name");
if (sizeof($custom_field) > 0)
$this->options[$name] = $custom_field[0];
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ subfolders tpl (citation list rendering) and format (entry rendering).

== Changelog ==

= 0.3.11 =
* Fix a bug introduced in 0.3.10
= 0.3.10 =
* Multiple authors in bibcite (enhancement #2)
* Ignores @comment entries generated by jabref (bug 22)
Expand Down Expand Up @@ -171,6 +173,8 @@ subfolders tpl (citation list rendering) and format (entry rendering).

== Upgrade Notice ==

= 0.3.11 =
Should be the last stable release before the 0.4.0 and CoINS support
= 0.3.5 =
Compatibility with version prior to 0.3.0 is now almost completed. Users who
want to use the new grouping, sorting or template functionalities are advised
Expand Down

0 comments on commit 9def8e3

Please sign in to comment.