WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/06/2012 01:01:52 AM (8 years ago)
Author:
azaozz
Message:

Kill use of colons in class names, props SergeyBiryukov, fixes #21152

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r22373 r22396  
    422422    </tr>
    423423    </thead>
    424     <tbody id="the-list" class="list:meta">
     424    <tbody id="the-list" data-wp-lists="list:meta">
    425425    <tr><td></td></tr>
    426426    </tbody>
     
    437437    </tr>
    438438    </thead>
    439     <tbody id='the-list' class='list:meta'>
     439    <tbody id='the-list' data-wp-lists='list:meta'>
    440440<?php
    441441    foreach ( $meta as $entry )
     
    493493
    494494    $r .= "\n\t\t<div class='submit'>";
    495     $r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta small", "deletemeta[{$entry['meta_id']}]", false );
     495    $r .= get_submit_button( __( 'Delete' ), 'deletemeta small', "deletemeta[{$entry['meta_id']}]", false, array( 'data-wp-lists' => "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce" ) );
    496496    $r .= "\n\t\t";
    497     $r .= get_submit_button( __( 'Update' ), "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce updatemeta small" , "meta-{$entry['meta_id']}-submit", false );
     497    $r .= get_submit_button( __( 'Update' ), 'updatemeta small', "meta-{$entry['meta_id']}-submit", false, array( 'data-wp-lists' => "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce" ) );
    498498    $r .= "</div>";
    499499    $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
     
    557557<tr><td colspan="2">
    558558<div class="submit">
    559 <?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta secondary', 'addmeta', false, array( 'id' => 'newmeta-submit' ) ); ?>
     559<?php submit_button( __( 'Add Custom Field' ), 'secondary', 'addmeta', false, array( 'id' => 'newmeta-submit', 'data-wp-lists' => 'add:the-list:newmeta' ) ); ?>
    560560</div>
    561561<?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?>
Note: See TracChangeset for help on using the changeset viewer.