Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

Commit

Permalink
Emmm...
Browse files Browse the repository at this point in the history
  • Loading branch information
milkice233 committed Nov 1, 2018
1 parent 933f486 commit 8805249
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function kratos_get_avatar( $avatar ) {
*/
function my_formatter($content) {
$new_content = '';
$pattern_full = '{(\[raw\].*?\[/raw\])}is';
$pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
$pattern_full = '{(\[txt\].*?\[/txt\])}is';
$pattern_contents = '{\[txt\](.*?)\[/txt\]}is';
$pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);
foreach ($pieces as $piece) {
if (preg_match($pattern_contents, $piece, $matches)) {
Expand Down
5 changes: 5 additions & 0 deletions inc/upgrade.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": "2.6.4.0",
"details_url": "https://github.com/MilkiceForks/Kratos-M/releases/latest",
"download_url": "https://github.com/MilkiceForks/Kratos-M/archive/v2.6.4.0.zip"
}

0 comments on commit 8805249

Please sign in to comment.