Ticket #10758: 10758.2.patch
| File 10758.2.patch, 3.5 KB (added by hakre, 3 years ago) |
|---|
-
wp-admin/admin-footer.php
29 29 <?php 30 30 do_action('admin_footer', ''); 31 31 do_action('admin_print_footer_scripts'); 32 do_action("admin_footer-$hook_suffix"); 32 if (isset($hook_suffix)) 33 do_action("admin_footer-$hook_suffix"); 34 else 35 do_action("admin_footer-"); 33 36 34 37 // get_site_option() won't exist when auto upgrading from <= 2.7 35 38 if ( function_exists('get_site_option') ) { -
wp-includes/capabilities.php
860 860 $post_author_data = get_userdata( $post->post_author ); 861 861 //echo "current user id : $user_id, post author id: " . $post_author_data->ID . "<br />"; 862 862 // If the user is the author... 863 if ( $user_id == $post_author_data->ID ) {863 if ( is_object($post_author_data) && $user_id == $post_author_data->ID ) { 864 864 // If the post is published... 865 865 if ( 'publish' == $post->post_status ) { 866 866 $caps[] = 'edit_published_posts'; -
wp-includes/functions.wp-styles.php
11 11 * 12 12 * @since r79 13 13 * @uses do_action() Calls 'wp_print_styles' hook. 14 * @global object$wp_styles The WP_Styles object for printing styles.14 * @global WP_Styles $wp_styles The WP_Styles object for printing styles. 15 15 * 16 16 * @param array $handles (optional) Styles to be printed. (void) prints queue, (string) prints that style, (array of strings) prints those styles. 17 17 * @return bool True on success, false on failure. … … 21 21 if ( '' === $handles ) // for wp_head 22 22 $handles = false; 23 23 24 /* @var $wp_styles WP_Styles */ 24 25 global $wp_styles; 25 26 if ( !is_a($wp_styles, 'WP_Styles') ) { 26 27 if ( !$handles ) … … 37 38 * 38 39 * @since r79 39 40 * @see WP_Styles::add() For parameter and additional information. 41 * @global WP_Styles $wp_styles 42 * @return void 40 43 */ 41 44 function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) { 45 /* @var $wp_styles WP_Styles */ 42 46 global $wp_styles; 43 47 if ( !is_a($wp_styles, 'WP_Styles') ) 44 48 $wp_styles = new WP_Styles(); … … 51 55 * 52 56 * @since r79 53 57 * @see WP_Styles::remove() For parameter and additional information. 58 * @global WP_Styles $wp_styles 54 59 */ 55 60 function wp_deregister_style( $handle ) { 61 /* @var $wp_styles WP_Styles */ 56 62 global $wp_styles; 57 63 if ( !is_a($wp_styles, 'WP_Styles') ) 58 64 $wp_styles = new WP_Styles(); … … 65 71 * 66 72 * @since r79 67 73 * @see WP_Styles::add(), WP_Styles::enqueue() 74 * @global WP_Styles $wp_styles 68 75 */ 69 76 function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = false ) { 77 /* @var $wp_styles WP_Styles */ 70 78 global $wp_styles; 71 79 if ( !is_a($wp_styles, 'WP_Styles') ) 72 80 $wp_styles = new WP_Styles(); … … 89 97 * @param string $handle Handle used to add style. 90 98 * @param string $list Optional, defaults to 'queue'. Others values are 'registered', 'queue', 'done', 'to_do' 91 99 * @return bool 100 * @global WP_Styles $wp_styles 92 101 */ 93 102 function wp_style_is( $handle, $list = 'queue' ) { 103 /* @var $wp_styles WP_Styles */ 94 104 global $wp_styles; 95 105 if ( !is_a($wp_styles, 'WP_Styles') ) 96 106 $wp_styles = new WP_Styles();
