Skip to content

Commit

Permalink
Merge pull request GlotPress#392 from Automattic/391-fixTranslationsF…
Browse files Browse the repository at this point in the history
…ormsHooks

Fix hooks in translation set filters/sort
  • Loading branch information
toolstack committed Apr 27, 2016
2 parents 0e415f3 + 182b828 commit 99034df
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion gp-templates/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,16 @@
<input type="checkbox" name="filters[with_context]" value="yes" id="filters[with_context][yes]" <?php gp_checked( 'yes' == gp_array_get( $filters, 'with_context' ) ); ?>><label for='filters[with_context][yes]'><?php _e( 'With context', 'glotpress' ); ?></label><br />
<input type="checkbox" name="filters[case_sensitive]" value="yes" id="filters[case_sensitive][yes]" <?php gp_checked( 'yes' == gp_array_get( $filters, 'case_sensitive' ) ); ?>><label for='filters[case_sensitive][yes]'><?php _e( 'Case sensitive', 'glotpress' ); ?></label>
</dd>
<?php

/**
* Fires after the translation set filters options.
*
* This action is inside a DL element.
*
* @since 2.1.0
*/
do_action( 'gp_translation_set_filters_form' ); ?>

<dd><input type="submit" value="<?php esc_attr_e( 'Filter', 'glotpress' ); ?>" name="filter" /></dd>
</dl>
Expand Down Expand Up @@ -165,9 +174,20 @@
*
* This action is inside a DL element.
*
* @deprecated 2.1.0 Call gp_translation_set_sort_form instead
* @since 1.0.0
*/
do_action( 'gp_translation_set_filters' ); ?>
do_action( 'gp_translation_set_filters' );

/**
* Fires after the translation set sort options.
*
* This action is inside a DL element.
*
* @since 2.1.0
*/
do_action( 'gp_translation_set_sort_form' ); ?>

<dd><input type="submit" value="<?php esc_attr_e( 'Sort', 'glotpress' ); ?>" name="sorts" /></dd>
</dl>
</form>
Expand Down

0 comments on commit 99034df

Please sign in to comment.