Commit Graph

29 Commits

Author SHA1 Message Date
Ryan Boren
24a69e1602 Allow hyphens in shortcode names.
Props kovshenin, solarissmoke, aaroncampbell
fixes #17657


git-svn-id: https://develop.svn.wordpress.org/trunk@22382 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-05 22:27:36 +00:00
Andrew Nacin
bc47e0cb3a Add a comment to get_shortcode_regex() mentioning its near clones elsewhere. see #21996.
git-svn-id: https://develop.svn.wordpress.org/trunk@22005 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 01:16:31 +00:00
Ryan Boren
2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Ryan Boren
a8d77cbae9 User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
git-svn-id: https://develop.svn.wordpress.org/trunk@19687 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:50:54 +00:00
Ryan Boren
14c6df057d Avoid preg backtrack limit errors with large posts when processing shortcodes. Props mdawaffe. fixes #15600
git-svn-id: https://develop.svn.wordpress.org/trunk@18952 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-12 16:50:30 +00:00
Jon Cave
82c0f09c09 Fix typos in documentation (wp-includes/[i-z]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18639 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-05 19:08:15 +00:00
Mark Jaquith
aafd7c6db9 Make it obvious that do_shortcode_tag passes the tag as the third parameter. plus code spacing cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@12750 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-17 22:51:15 +00:00
Mark Jaquith
12f588566f Do not destroy characters surrounding shortcodes in strip_shortcodes(). fixes #10326
git-svn-id: https://develop.svn.wordpress.org/trunk@12206 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 08:12:05 +00:00
Ryan Boren
8d00b5d37d Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10810 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-18 02:43:45 +00:00
Peter Westwood
0477e4426d Fix regression in shortcode behaviour. Fixes #9238 props tellyworth.
git-svn-id: https://develop.svn.wordpress.org/trunk@10658 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-27 17:01:59 +00:00
Peter Westwood
7fe219e776 Introduce a simple mechanism for escaping shortcodes by doubling the [[]]. Fixes #6518 props tellyworth.
git-svn-id: https://develop.svn.wordpress.org/trunk@10576 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-15 16:01:14 +00:00
Ryan Boren
9c42d17153 Pass tag name when using shortcodes. Props Viper007Bond. fixes #6606
git-svn-id: https://develop.svn.wordpress.org/trunk@8613 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-11 04:00:33 +00:00
Ryan Boren
2272a1a950 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@8600 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-09 05:36:14 +00:00
Ryan Boren
99fd205707 phpdoc for shortcodes from jacobsantos. fixes #7184
git-svn-id: https://develop.svn.wordpress.org/trunk@8196 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-26 15:55:33 +00:00
Ryan Boren
daef9ff12d Strip shortcodes when making excerpts. Props hailin. fixes #7100
git-svn-id: https://develop.svn.wordpress.org/trunk@8054 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-05 20:11:38 +00:00
Mark Jaquith
1c68bb873d Don't wpautop()-wrap shortcodes that stand alone. fixes #6444 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7815 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-25 00:45:31 +00:00
Mark Jaquith
24a68a43b4 Revert [7700] from trunk in preparation for a different #6444 solution
git-svn-id: https://develop.svn.wordpress.org/trunk@7814 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-25 00:43:44 +00:00
Ryan Boren
5837ef3998 Normalize whitespace when parsing shortcodes. Props azaozz. fixes #6562 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7769 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-22 20:54:51 +00:00
Mark Jaquith
d9efa4fa8f Allow shortcodes to run before or after wpautop()/texturize() formatting. Default to before for WP 2.5 compat. Props AaronCampbell
git-svn-id: https://develop.svn.wordpress.org/trunk@7699 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-16 21:07:04 +00:00
Mark Jaquith
1f101350ba Parse shortcodes AFTER wpautop() to avoid mangling. Have wptexturize() ignore shortcodes so quotes stay straight. fixes #6444 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7581 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-31 07:56:58 +00:00
Matt Mullenweg
c85f10781c Shortcode quotes were getting texturized, which can cause a bit of chaos. Fixes #6436.
git-svn-id: https://develop.svn.wordpress.org/trunk@7561 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-28 15:23:09 +00:00
Ryan Boren
cf9618758d Gallery display enhancements from tellyworth. fixes #6368
git-svn-id: https://develop.svn.wordpress.org/trunk@7496 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-24 02:57:19 +00:00
Ryan Boren
7d6440bba2 Fix insert, gallery, sizing, type queries, errors, thumbs, type fallback. Props andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7172 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-06 19:48:54 +00:00
Ryan Boren
c088813775 shortcodes should not require var=val format. Props andy. fixes #5892
git-svn-id: https://develop.svn.wordpress.org/trunk@6939 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-20 16:47:50 +00:00
Ryan Boren
a8885822ee Support positional attributes in shortcodes. Props tellyworth. fixes #5914
git-svn-id: https://develop.svn.wordpress.org/trunk@6911 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-19 06:52:30 +00:00
Ryan Boren
4b670951fe Fix floated left gallery layout breaks. Prop s nbachiyski. fixes #5828
git-svn-id: https://develop.svn.wordpress.org/trunk@6801 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-13 06:35:21 +00:00
Matt Mullenweg
bf2d50bf6b Blow out mem limit, slightly larger thumbnails.
git-svn-id: https://develop.svn.wordpress.org/trunk@6786 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-11 09:02:44 +00:00
Ryan Boren
3a18b96c9b Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@6726 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 06:47:27 +00:00
Matt Mullenweg
dd37de2de7 First pass at async upload, multi-upload, and gallery feature. Modified names from patch. Hat tip: tellyworth, skeltoac.
git-svn-id: https://develop.svn.wordpress.org/trunk@6659 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-25 19:21:11 +00:00