[wp-trac] [WordPress Trac] #7111: widgets.php in
"/wp-admin/includes/" has no final PHP end tag
WordPress Trac
wp-trac at lists.automattic.com
Sun Jun 8 23:09:11 GMT 2008
#7111: widgets.php in "/wp-admin/includes/" has no final PHP end tag
--------------------------+-------------------------------------------------
Reporter: scribblerguy | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5.2
Component: General | Version:
Severity: normal | Keywords: coding convention, end tags
--------------------------+-------------------------------------------------
The "wp-admin/includes/widget.php" file (changeset 7979) does not have a
final PHP end tag ("?>"). Is this on purpose? Or, if not, are there any
functions that are missing?
[http://trac.wordpress.org/browser/trunk/wp-admin/includes/widgets.php]
The last 15 or so lines:
{{{
273 <?php
274 if ( empty($sidebar_args['_display']) || 'template' !=
$sidebar_args['_display'] )
275 echo $sidebar_args['after_widget'];
276 return $sidebar_args;
277 }
278
279 function wp_widget_control_ob_filter( $string ) {
280 if ( false === $beg = strpos( $string, '%BEG_OF_TITLE%' ) )
281 return '';
282 if ( false === $end = strpos( $string, '%END_OF_TITLE%' ) )
283 return '';
284 $string = substr( $string, $beg + 14 , $end - $beg - 14);
285 $string = str_replace( ' ', ' ', $string );
286 return trim( wp_specialchars( strip_tags( $string ) ) );
287 }
288
}}}
That's it.
Compare:
[http://trac.wordpress.org/browser/trunk/wp-
admin/includes/widgets.php?rev=7978] (from changeset 7964)
--
Ticket URL: <http://trac.wordpress.org/ticket/7111>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list