Skip to content

Commit

Permalink
Update Core string, see #41
Browse files Browse the repository at this point in the history
  • Loading branch information
KingYes committed Apr 24, 2014
1 parent d852b31 commit 7280a0b
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 93 deletions.
9 changes: 5 additions & 4 deletions classes/class-aal-activity-log-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,16 @@ public function column_description( $item ) {
$return = sprintf( '<a href="%s">%s</a>', get_edit_term_link( $item->object_id, $item->object_subtype ), $item->object_name );
break;

case 'Options' :
$return = __( $item->object_name, 'aryo-aal' );
break;

case 'Comments' :
if ( ! empty( $item->object_id ) && $comment = get_comment( $item->object_id ) ) {
$return = sprintf( '<a href="%s">%s #%d</a>', get_edit_comment_link( $item->object_id ), $item->object_name, $item->object_id );
}
break;

case 'Options' :
case 'Core' :
$return = __( $item->object_name, 'aryo-aal' );
break;
}

return $return;
Expand Down
4 changes: 2 additions & 2 deletions hooks/class-aal-hook-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ public function _core_updated_successfully( $wp_version ) {

// Auto updated
if ( 'update-core.php' !== $pagenow )
$object_name = __( 'WordPress Auto Updated', 'aryo-aal' );
$object_name = 'WordPress Auto Updated';
else
$object_name = __( 'WordPress Updated', 'aryo-aal' );
$object_name = 'WordPress Updated';

aal_insert_log( array(
'action' => 'updated',
Expand Down
Loading

0 comments on commit 7280a0b

Please sign in to comment.