Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#24438 closed defect (bug) (fixed)

Strict Standards Error with New Installation

Reported by: sunnyratilal's profile sunnyratilal Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Warnings/Notices Keywords: has-patch
Focuses: Cc:

Description

On a new install of WordPress, I'm running into a lot of errors about pass-by references.

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 589

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 622

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 644

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 655

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 662

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 675

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 675

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 696

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 702

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 708

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 720

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 733

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 746

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 760

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 774

Strict Standards: Only variables should be assigned by reference in /srv/www/wordpress-trunk/wp-admin/includes/schema.php on line 787

These are all triggered by $role =& get_role(); and the simple fix it to remove the ampersand so it becomes $role = get_role();.

Related: #24433

Attachments (1)

24438.diff (3.5 KB) - added by sunnyratilal 12 years ago.

Download all attachments as: .zip

Change History (3)

@sunnyratilal
12 years ago

#1 @ocean90
12 years ago

  • Component changed from General to Warnings/Notices
  • Milestone changed from Awaiting Review to 3.6

#2 @SergeyBiryukov
12 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 24381:

Avoid 'Only variables should be assigned by reference' warnings during installation. props sunnyratilal. fixes #24438.

Note: See TracTickets for help on using tickets.