Skip to content

Commit

Permalink
Use official prefix for action
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejarrett committed Feb 4, 2014
1 parent a929720 commit bc0e708
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions includes/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public static function load() {
add_action( 'admin_init', array( __CLASS__, 'register_settings' ) );

// Check if we need to flush rewrites rules
add_action( 'update_option_' . self::KEY , array( __CLASS__, 'updated_option_trigger_flush_rules' ), 10, 2 );
add_action( 'update_option_' . self::KEY, array( __CLASS__, 'updated_option_trigger_flush_rules' ), 10, 2 );

// Remove records when records TTL is shortened
add_action( 'update_option_' . self::KEY , array( __CLASS__, 'updated_option_ttl_remove_records' ), 10, 2 );
add_action( 'update_option_' . self::KEY, array( __CLASS__, 'updated_option_ttl_remove_records' ), 10, 2 );

add_filter( 'wp_stream_serialized_labels', array( __CLASS__, 'get_settings_translations' ) );
}
Expand Down Expand Up @@ -417,9 +417,9 @@ public static function get_settings_translations( $labels ) {
public function updated_option_ttl_remove_records( $old_value, $new_value ) {
$ttl_before = isset( $old_value['general_records_ttl'] ) ? (int) $old_value['general_records_ttl'] : -1;
$ttl_after = isset( $new_value['general_records_ttl'] ) ? (int) $new_value['general_records_ttl'] : -1;

if ( $ttl_after < $ttl_before ) {
do_action( 'stream_auto_purge' );
do_action( 'wp_stream_auto_purge' );
}
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Great! There are several ways you can get involved to help make Stream better:

Thank you for wanting to make Stream better for everyone! We salute you.

[![Build Status](https://travis-ci.org///github.com/x-team/wp-stream.png?branch=master)](https://travis-ci.org///github.com/x-team/wp-stream)
[![Build Status](https://travis-ci.org/x-team/wp-stream.png?branch=master)](https://travis-ci.org/x-team/wp-stream)

## Screenshots ##

Expand Down

0 comments on commit bc0e708

Please sign in to comment.