Making WordPress.org


Ignore:
Timestamp:
07/30/2014 09:45:47 PM (10 years ago)
Author:
coffee2code
Message:

Handbook plugin: make watch/unwatch feature an action link instead of a widget

  • Remove WPorg_Handbook_Widget and WPorg_Handbook_Widget_for_Pages classes and usage thereof
  • Add WPorg_Handbook_Watchlist class in new inc/watchlist.php
  • Add title text to links to provide context about what watching actually does

Fixes #437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/email-post-changes.php

    r707 r772  
    88
    99    public static function init() {
    10         add_action( 'widgets_init', array( __CLASS__, 'handbook_sidebar' ), 11 ); // After P2
    1110        add_filter( 'email_post_changes_emails', array( __CLASS__, 'email_post_changes_emails' ), 10, 3 );
    1211        add_action( 'admin_post_wporg_watchlist', array( __CLASS__, 'update_watchlist' ) );
    1312        add_action( 'option_email_post_changes', array( __CLASS__, 'option_email_post_changes' ) );
    14     }
    15 
    16     public static function handbook_sidebar() {
    17         require_once dirname( __FILE__ ) . '/widgets.php';
    18         register_widget( 'WPorg_Handbook_Widget' );
    1913    }
    2014
Note: See TracChangeset for help on using the changeset viewer.