WordPress.org

Ready to get started?Download WordPress

Forums

Simple Page Ordering
FIX: unexpected t_object_operator in simple-page-ordering.php at line 54 (1 post)

  1. toastyghost
    Member
    Posted 2 years ago #

    I'm running PHP 4.4.9 (not by my choice), so this probably doesn't apply to anyone using a language that hasn't been discontinued for 4 years, but if it does affect you it's a quick fix. Steps follow.

    1. Open wordpress/wp-content/plugins/simple-page-ordering/simple-page-ordering.php in your editor of choice.
    2. At line 54, change this...
      add_filter( 'views_' . get_current_screen()->id, array( $this, 'sort_by_order_link' ) );
      to this...
      $current_screen = get_current_screen();
      add_filter( 'views_' . $current_screen->id, array( $this, 'sort_by_order_link' ) );
    3. Save/refresh and the error is gone!

    http://wordpress.org/extend/plugins/simple-page-ordering/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic