Ditty News Ticker - Version 2.2.3

Version Description

  • Bug fix
Download this release

Release Info

Developer metaphorcreations
Plugin Icon 128x128 Ditty News Ticker
Version 2.2.3
Comparing to
See all releases

Code changes from version 2.2.2 to 2.2.3

ditty-news-ticker.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://dittynewsticker.com/
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
  Text Domain: ditty-news-ticker
7
  Domain Path: languages
8
- Version: 2.2.2
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
@@ -29,7 +29,7 @@ along with this program; if not, write to the Free Software
29
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
  */
31
 
32
- define( 'MTPHR_DNT_VERSION', '2.2.2' );
33
  define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
34
  define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
35
  define( 'MTPHR_DNT_STORE_URL', 'https://www.metaphorcreations.com' );
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
  Text Domain: ditty-news-ticker
7
  Domain Path: languages
8
+ Version: 2.2.3
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
29
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
  */
31
 
32
+ define( 'MTPHR_DNT_VERSION', '2.2.3' );
33
  define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
34
  define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
35
  define( 'MTPHR_DNT_STORE_URL', 'https://www.metaphorcreations.com' );
legacy/classes/helpers/class-mtphr-dnt-string-replacement.php CHANGED
@@ -55,7 +55,7 @@ class MTPHR_DNT_String_Replacement {
55
  if( is_array($this->replacements) && count($this->replacements) > 0 ) {
56
  foreach( $this->replacements as $i=>$replacement ) {
57
  if( $replacement['type'] == 'simple' ) {
58
- $str = preg_replace( '/'.$replacement['placeholder'].'/i', $replacement['replacement'], $str );
59
  } elseif( $replacement['type'] == 'hashtag' ) {
60
  $str = preg_replace( '/ [#]+([A-Za-z0-9-_]+)/i', '<a href="'.$replacement['url'].'\\1" target="'.$replacement['target'].'">\\0</a>', $str );
61
  $str = preg_replace( '/^[#]+([A-Za-z0-9-_]+)/i', '<a href="'.$replacement['url'].'\\1" target="'.$replacement['target'].'">\\0</a>', $str );
55
  if( is_array($this->replacements) && count($this->replacements) > 0 ) {
56
  foreach( $this->replacements as $i=>$replacement ) {
57
  if( $replacement['type'] == 'simple' ) {
58
+ $str = preg_replace( '%'.$replacement['placeholder'].'%i', $replacement['replacement'], $str );
59
  } elseif( $replacement['type'] == 'hashtag' ) {
60
  $str = preg_replace( '/ [#]+([A-Za-z0-9-_]+)/i', '<a href="'.$replacement['url'].'\\1" target="'.$replacement['target'].'">\\0</a>', $str );
61
  $str = preg_replace( '/^[#]+([A-Za-z0-9-_]+)/i', '<a href="'.$replacement['url'].'\\1" target="'.$replacement['target'].'">\\0</a>', $str );
readme.txt CHANGED
@@ -72,6 +72,9 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
72
 
73
  == Changelog ==
74
 
 
 
 
75
  = 2.2.2 =
76
  * Bug fix
77
 
72
 
73
  == Changelog ==
74
 
75
+ = 2.2.3 =
76
+ * Bug fix
77
+
78
  = 2.2.2 =
79
  * Bug fix
80