use content, attribute 0 -or- 'id' #284

Closed
wants to merge 1 commit into
from

Projects

None yet

5 participants

@RsrchBoy
RsrchBoy commented Mar 1, 2014

There are a number of other gist-shortcode-providing plugins out there, almost
all of which use the 'id' attribute. This change honors that attribute as
well, to allow for an easy migration.

@RsrchBoy RsrchBoy use content, attribute 0 -or- 'id'
There are a number of other gist-shortcode-providing plugins out there, almost
all of which use the 'id' attribute.  This change honors that attribute as
well, to allow for an easy migration.
e4b2492
@RsrchBoy
RsrchBoy commented Mar 4, 2014

FWIW, I'd tag this as more urgent than just an enhancement.. Unless someone is willing to go in and edit the jetpack plugin, anyone on 2.9 and using any sort of embedded gists via any of the other ``[gist]` shortcode-providing plugins is going to be force to make a choice between having all their gists broken, manually changing all the embed shortcodes in each post using them, or disabling all of jectpack's functionality.

@kraftbj kraftbj added this to the 3.0 Freeze milestone Mar 4, 2014
@georgestephanis
Member

Two changes before I'd be okay merging it in -- 1) make sure you quote strings, for example id as an array key, and 2) don't nest ternary conditionals like that, it gets really illegible. Do sequential if checks instead.

@georgestephanis
Member

Also, in lines 19-20, it looks like you've inadvertently swapped out tab-based indentation for spaces?

@blobaugh
Contributor
blobaugh commented Mar 4, 2014

@RsrchBoy slight bunny trail, but I wanted to make sure you have some additional information. Each shortcode in Jetpack passes through the jetpack_shortcodes_to_include filter. If someone has enabled the Jetpack shortcodes module and ever needs to turn one off they can tap into that filter.

https://github.com/Automattic/jetpack/blob/master/modules/shortcodes.php#L49

@blobaugh blobaugh added Multisite and removed Multisite labels Mar 25, 2014
@blobaugh
Contributor

@RsrchBoy There has been no update on this in 21 days. Is this something you would like to fix for inclusion? This PR will be closed soon if we do not hear back.

@blobaugh
Contributor

Closing due to lack of response to questions for original poster.

@blobaugh blobaugh closed this May 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment