mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422
git-svn-id: https://develop.svn.wordpress.org/trunk@16365 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -250,7 +250,7 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||
$actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
|
||||
|
||||
$actions = apply_filters( 'tag_row_actions', $actions, $tag );
|
||||
$actions = apply_filters( "${taxonomy}_row_actions", $actions, $tag );
|
||||
$actions = apply_filters( "{$taxonomy}_row_actions", $actions, $tag );
|
||||
|
||||
$out .= $this->row_actions( $actions );
|
||||
$out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
|
||||
|
||||
@@ -1022,7 +1022,7 @@ function get_sample_permalink($id, $title = null, $name = null) {
|
||||
$uri = untrailingslashit($uri);
|
||||
if ( !empty($uri) )
|
||||
$uri .= '/';
|
||||
$permalink = str_replace('%pagename%', "${uri}%pagename%", $permalink);
|
||||
$permalink = str_replace('%pagename%', "{$uri}%pagename%", $permalink);
|
||||
}
|
||||
|
||||
$permalink = array($permalink, apply_filters('editable_slug', $post->post_name));
|
||||
|
||||
@@ -98,7 +98,7 @@ function wp_list_widget_controls_dynamic_sidebar( $params ) {
|
||||
$id = isset($params[0]['_temp_id']) ? $params[0]['_temp_id'] : $widget_id;
|
||||
$hidden = isset($params[0]['_hide']) ? ' style="display:none;"' : '';
|
||||
|
||||
$params[0]['before_widget'] = "<div id='widget-${i}_$id' class='widget'$hidden>";
|
||||
$params[0]['before_widget'] = "<div id='widget-{$i}_{$id}' class='widget'$hidden>";
|
||||
$params[0]['after_widget'] = "</div>";
|
||||
$params[0]['before_title'] = "%BEG_OF_TITLE%"; // deprecated
|
||||
$params[0]['after_title'] = "%END_OF_TITLE%"; // deprecated
|
||||
|
||||
Reference in New Issue
Block a user