Skip to content

Loading…

support shortcode filters in WP 3.6 #427

Merged
merged 1 commit into from

1 participant

@niallkennedy

Pass the shortcode string to shortcode_atts() to enable shortcode_atts_* filters.

See WP Core #15155

@niallkennedy niallkennedy merged commit 607abe3 into facebookarchive:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 5, 2013
  1. @niallkennedy

    support shortcode filters

    niallkennedy committed
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 social-plugins/shortcodes.php
View
4 social-plugins/shortcodes.php
@@ -40,7 +40,7 @@ public static function like_button( $attributes, $content = null ) {
'font' => isset( $site_options['font'] ) ? $site_options['font'] : '',
'colorscheme' => isset( $site_options['colorscheme'] ) ? $site_options['colorscheme'] : '',
'ref' => 'shortcode'
- ), $attributes );
+ ), $attributes, 'facebook_like_button' );
// check for valid href value. unset if not valid, allowing for a possible permalink replacement
if ( is_string( $options['href'] ) && $options['href'] )
@@ -89,7 +89,7 @@ public static function send_button( $attributes, $content = null ) {
'font' => isset( $site_options['font'] ) ? $site_options['font'] : '',
'colorscheme' => isset( $site_options['colorscheme'] ) ? $site_options['colorscheme'] : '',
'ref' => 'shortcode'
- ), $attributes );
+ ), $attributes, 'facebook_send_button' );
// check for valid href value. unset if not valid, allowing for a possible permalink replacement
if ( is_string( $options['href'] ) && $options['href'] )
Something went wrong with that request. Please try again.