Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #35553


Ignore:
Timestamp:
01/22/2016 02:33:48 AM (10 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35553

    • Property Keywords has-patch added
    • Property Milestone changed from Awaiting Review to 4.5
  • Ticket #35553 – Description

    initial v2  
    11The `src/wp-includes/taxonomy.php` file contains a PHPDoc comment with the following PHP snippet:
    2 
     2{{{
    33    `<?php $taxonomies = get_object_taxonomies('post'); ?>`
    4 
     4}}}
    55To be in consistency with other PHP snippets, this should be changed to:
    6 
     6{{{
    77    `$taxonomies = get_object_taxonomies('post')`
    8 
     8}}}
    99I have searched for other similar instances in the WP code, but found only this single example, the other two hits are different contexts:
    10 
     10{{{
    1111    $ grep -rP "\*.*\?php" *
    1212    src/wp-includes/js/customize-loader.js:      *     e.g. <a class="load-customize" href="<?php echo wp_customize_url(); ?>">Open Customizer</a>
    1313    src/wp-includes/taxonomy.php: * `<?php $taxonomies = get_object_taxonomies('post'); ?>` Should
    1414    src/wp-admin/includes/file.php:             <input name="password" type="password" id="password" value="<?php if ( defined('FTP_PASS') ) echo '*****'; ?>"<?php disabled( defined('FTP_PASS') ); ?> />
    15 
     15}}}
    1616Note that this change is not simply academic. The redundant PHP tags break VIM PHPDoc processing.
    1717