-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wpcom/shortcodes 17feb2017 #6440
Changes from 4 commits
9c55d41
4ecd1a6
5f6a9a1
320fea6
a6c12d3
c73f25a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,5 +111,13 @@ function slideshare_shortcode( $atts ) { | |
|
||
$player .= ' allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe>'; | ||
|
||
return $player; | ||
} | ||
/** | ||
* Filter the returned shortcode. | ||
* | ||
* @module shortcodes | ||
* @since 4.8.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be 4.7.0 if we merge it before the 28th There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drat! It was Core that's on the 4.7.x release, not us! Fixing! |
||
* | ||
* @param string $player The iframe to return. | ||
*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's add new param doc for $atts |
||
return apply_filters( 'jetpack_slideshare_shortcode', $player, $atts ); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add
@module
and@since
parameters to this new filter?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My plan was to add those in in a subsequent change -- I'd been thinking PR, but maybe it would be easier to just do this all in this PR and then resync to wpcom.