Advertisement
simonwheatley

Spec Widget enhancement

Aug 24th, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. Index: wp-content/plugins/spectacula-page-widget/spec-page-widget.php
  2. ===================================================================
  3. --- wp-content/plugins/spectacula-page-widget/spec-page-widget.php  (revision 424269)
  4. +++ wp-content/plugins/spectacula-page-widget/spec-page-widget.php  (working copy)
  5. @@ -81,9 +81,9 @@
  6.  
  7.                 if (!post_password_required($page_id)) {
  8.                     if ($excerpt_toggle) {
  9. -                       $content = $page->post_excerpt ? apply_filters('the_excerpt', $page->post_excerpt) : $this->excerptify($page->post_content);
  10. +                       $content = $page->post_excerpt ? apply_filters('the_excerpt', $page->post_excerpt, $page->ID) : $this->excerptify($page->post_content);
  11.                     } else {
  12. -                       $content = apply_filters('the_content', $page->post_content);
  13. +                       $content = apply_filters('the_content', $page->post_content, $page->ID);
  14.                     }
  15.                 } else {
  16.                     $content = __('Password protected page', SPEC_PAGEWIDGET_DOM);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement