[buddypress-trac] [BuddyPress Trac] #330: Pagination in Blogs resulting in 404

buddypress-trac noreply at wordpress.org
Mon Mar 11 13:08:53 UTC 2024


#330: Pagination in Blogs resulting in 404
--------------------------+---------------------
 Reporter:  jmax123       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  minor         |   Milestone:
Component:  (not sure)    |     Version:
 Severity:  trivial       |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------
Changes (by baggyjack):

 * component:   => (not sure)
 * severity:   => trivial


Comment:

 This is code which fixed it

 {{{
 1       <?php
 2
 /**************************************************************************
 3        groups_add_js()
 4
 5        Inserts the Javascript needed for managingg groupsz.
 6
 **************************************************************************/
 7
 8       function groups_add_js() {
 9               global $bp;
 10
 11              if ( !isset($_GET['page']) )
 12                      $_GET['page'] = null;
 13
 14              if ( strpos( $_GET['page'], 'groups' ) !== false ||
 $bp['current_component'] == $bp['groups']['slug'] ) {
 15                      echo '
 16                              <script src="' . get_option('siteurl') .
 '/wp-content/mu-plugins/bp-groups/js/general.js"
 type="text/javascript"></script>';
 17              }
 18      }
 19
 21
 22
 /**************************************************************************
 23       add_css()
 24
 25       Inserts the CSS needed to style the groups pages.
 26
 **************************************************************************/
 27
 28      function groups_add_css()
 29      {
 30              ?>
 31
 32              <?php
 33      }
 34
 35      ?>
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/330#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list