Make WordPress Core


Ignore:
Timestamp:
01/04/2013 08:02:16 AM (12 years ago)
Author:
nacin
Message:

Media: Restore 3.4 behavior by consulting the old-school DB options for default align, size, and link properties.

This restores linking to media files as the default, over attachment pages. This 'default' cannot currently be changed by a user setting (per 3.4 behavior), due to the default database schema.

see #22841, for trunk.

File:
1 edited

Legend:

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

    r23135 r23262  
    292292                        <?php esc_attr_e('Custom URL'); ?>
    293293                    </option>
    294                     <option value="post" selected>
     294                    <option value="file" selected>
     295                        <?php esc_attr_e('Media File'); ?>
     296                    </option>
     297                    <option value="post">
    295298                        <?php esc_attr_e('Attachment Page'); ?>
    296                     </option>
    297                     <option value="file">
    298                         <?php esc_attr_e('Media File'); ?>
    299299                    </option>
    300300                    <option value="none">
     
    348348                <# } #>>
    349349
    350                 <option value="post" selected>
     350                <option value="file" selected>
     351                    <?php esc_attr_e('Media File'); ?>
     352                </option>
     353                <option value="post">
    351354                    <?php esc_attr_e('Attachment Page'); ?>
    352                 </option>
    353                 <option value="file">
    354                     <?php esc_attr_e('Media File'); ?>
    355355                </option>
    356356            </select>
Note: See TracChangeset for help on using the changeset viewer.