-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.30.1 Issue #58 - ensure dynamic blocks are not stripped unintentio…
…nally
- Loading branch information
1 parent
4d01134
commit aaf80ad
Showing
3 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,12 @@ | |
Plugin URI: https://www.oik-plugins.com/oik-plugins/oik-shortcodes | ||
Description: oik shortcodes, APIs, hooks and classes and the [bw_api], [api], [apis], [codes], [hooks], [file], [files], [classes], [hook] and [md] shortcodes | ||
Depends: oik base plugin, oik fields, oik-sc-help | ||
Version: 1.30.0 | ||
Version: 1.30.1 | ||
Author: bobbingwide | ||
Author URI: https://www.oik-plugins.com/author/bobbingwide | ||
License: GPL2 | ||
Copyright 2012-2017 Bobbing Wide (email : [email protected] ) | ||
Copyright 2012-2018 Bobbing Wide (email : [email protected] ) | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License version 2, | ||
|
@@ -57,9 +57,12 @@ function oik_shortcodes_init() { | |
* We could move this logic to oik | ||
* but since we need oik-plugins, oik-themes and oik-shortcodes | ||
* all together it's just as good here as any. | ||
* | ||
* For Gutenberg we no longer remove the wp_trim_excerpt filter function. | ||
* Perhaps we should add our filter earlier in the process! | ||
*/ | ||
remove_filter( "get_the_excerpt", "wp_trim_excerpt" ); | ||
add_filter( "get_the_excerpt", "oik_get_the_excerpt" ); | ||
//remove_filter( "get_the_excerpt", "wp_trim_excerpt" ); | ||
add_filter( "get_the_excerpt", "oik_get_the_excerpt", 9 ); | ||
|
||
add_filter( "request", "oiksc_request" ); | ||
add_action( "run_oik-shortcodes.php", "oiksc_run_oik_shortcodes" ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters